Re: Nested transaction workaround? - Mailing list pgsql-general

From Tom Lane
Subject Re: Nested transaction workaround?
Date
Msg-id 11657.1074009035@sss.pgh.pa.us
Whole thread Raw
In response to Nested transaction workaround?  ("John Sidney-Woollett" <johnsw@wardbrook.com>)
Responses Re: Nested transaction workaround?
List pgsql-general
"John Sidney-Woollett" <johnsw@wardbrook.com> writes:
> Is it possible to use the dblink and dblink_exec features from inside
> pl/pgsql functions to mimic the behaviour of nested transactions by
> calling another function or executing some SQL via the dblink (into the
> same database)?

I wouldn't call it "nested" transactions: the remote transactions would
be committed, and would stay committed even if you roll back the caller.

            regards, tom lane

pgsql-general by date:

Previous
From: Phil Campaigne
Date:
Subject: Best Practice for incremental development
Next
From: Bruno Wolff III
Date:
Subject: Re: Drawbacks of using BYTEA for PK?