Re: dblink ,dblink_exec not participating in a Transaction??

From: "Douglas McNaught" <doug(at)mcnaught(dot)org>
To: "carty mc" <cartymc3(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dblink ,dblink_exec not participating in a Transaction??
Date: 2008-04-02 02:10:58
Message-ID: 5ded07e00804011910g5a86ec22jcfc1b77035102437@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Apr 1, 2008 at 7:56 PM, carty mc <cartymc3(at)yahoo(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2008-04-02 03:06:26 Re: [GENERAL] SHA1 on postgres 8.3
Previous Message Gurjeet Singh 2008-04-02 01:16:26 Re: Can Postgres 8.x start if some disks containing tablespaces are not mounted?