Re: Problem using start transaction in nested transactions. - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Problem using start transaction in nested transactions.
Date
Msg-id m2d5m4xan0.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to Re: Problem using start transaction in nested transactions.  ("Jim C. Nasby" <jnasby@pervasive.com>)
List pgsql-general
"Jim C. Nasby" <jnasby@pervasive.com> 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 savepoint-related stuff from
> inside functions in 8.0 or not.

Yes, you certainly can; PL/pgSQL uses savepoints to do its exception
handling.

-Doug

pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: searching array
Next
From: Tom Lane
Date:
Subject: Re: searching array