Re: dblink ,dblink_exec not participating in a Transaction?? - Mailing list pgsql-general

From Douglas McNaught
Subject Re: dblink ,dblink_exec not participating in a Transaction??
Date
Msg-id 5ded07e00804011910g5a86ec22jcfc1b77035102437@mail.gmail.com
Whole thread Raw
In response to Re: dblink ,dblink_exec not participating in a Transaction??  (carty mc <cartymc3@yahoo.com>)
List pgsql-general
On Tue, Apr 1, 2008 at 7:56 PM, carty mc <cartymc3@yahoo.com> wrote:

> In this case the updates that were made using dblink_exec are not getting
> rolled back in Database B.

And they won't be.  dblink isn't transactional in that way.  Your best
bet is to put all the data into one database and use schemas to
separate the table namespaces and control user acccess.

Failing that, changing the application to update both databases itself
and using 2PC might be an option.

-Doug

pgsql-general by date:

Previous
From: "Gurjeet Singh"
Date:
Subject: Re: Can Postgres 8.x start if some disks containing tablespaces are not mounted?
Next
From: Craig Ringer
Date:
Subject: Re: Primary Key with serial the solution?