Re: [GENERAL] Problem using start transaction in nested transactions.

2005-10-17 Thread Sri
Sent: Monday, October 17, 2005 11:38 PM Subject: Re: [GENERAL] Problem using start transaction in nested transactions. > You can't do subtransactions in PostgreSQL, but you can use savepoints: > http://www.postgresql.org/docs/8.0/interactive/sql-savepoint.html. > > Previously, you c

Re: [GENERAL] Problem using start transaction in nested transactions.

2005-10-17 Thread Douglas McNaught
"Jim C. Nasby" <[EMAIL PROTECTED]> writes: > You can't do subtransactions in PostgreSQL, but you can use savepoints: > http://www.postgresql.org/docs/8.0/interactive/sql-savepoint.html. > > Previously, you couldn't do any transactional stuff from inside > functions. I'm not sure if you can do save

Re: [GENERAL] Problem using start transaction in nested transactions.

2005-10-17 Thread Jim C. Nasby
You can't do subtransactions in PostgreSQL, but you can use savepoints: http://www.postgresql.org/docs/8.0/interactive/sql-savepoint.html. Previously, you couldn't do any transactional stuff from inside functions. I'm not sure if you can do savepoint-related stuff from inside functions in 8.0 or n

[GENERAL] Problem using start transaction in nested transactions.

2005-10-17 Thread Sri
Hi All,   I have a small problem in using nested transactions while working on Postgres 8.0.   Ex: I have a function A() which in turn calls functions b() and c() , if i want commit something in b or c. i have to use   start transaction read write; -- set of sql statements and then say comm