Re: Nested transaction workaround?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: johnsw(at)wardbrook(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Nested transaction workaround?
Date: 2004-01-13 15:50:35
Message-ID: 11657.1074009035@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"John Sidney-Woollett" <johnsw(at)wardbrook(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2004-01-13 15:51:38 Re: Drawbacks of using BYTEA for PK?
Previous Message Joshua D. Drake 2004-01-13 15:27:09 Re: Any real known bugs about wrong selects?