Skip site navigation (1) Skip section navigation (2)

...Roll Back issue in PGSQL..

From: Deepak <deepakdevan(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org(dot)
Subject: ...Roll Back issue in PGSQL..
Date: 2008-06-20 07:40:30
Message-ID: f60059d0806200040m7c363675h8a4e676ae929da0a@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Hi

I am trying to create a TRIGGER function,that populates values to another
table upon inserting a value into a table. The issue is,if there is a
exception(in Table 2) everything gets rolled back including Table1.I dont
want this to happen.i want the value of table1 to stay.
I tried "try....except" and introduced SAVEPOINT.But resulted in runtime
error.

Can anyone please help me out

-- 
Deepak

Responses

pgsql-hackers by date

Next:From: Thomas LeeDate: 2008-06-20 09:36:02
Subject: Re: Backend Stats Enhancement Request
Previous:From: SureshDate: 2008-06-20 06:11:47
Subject: Doubt in index subplan query

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group