I've a set of statements...
pg_query('do other stuff');
// DO SOME CLEANUP HERE
if something goes wrong the statement actually get rolled back... but
the pg_query('commit;') statement always succede so the cleanup never
How am I going to see if the transaction succeeded without checking
what happens for each statement and getting the cleanup code execute?
Ivan Sergio Borgonovo
pgsql-general by date
|Next:||From: Martijn van Oosterhout||Date: 2008-04-26 21:14:07|
|Subject: Re: taking actions on rollback (PHP)|
|Previous:||From: Tom Lane||Date: 2008-04-26 20:02:56|
|Subject: Re: Regular expression |