pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: elias ghanem <e.ghanem@acteos.com>
To: pgsql-performance@postgresql.org
Subject: Is DBLINK transactional
Date: Fri, 12 Mar 2010 17:27:47 +0200
Message-ID: <201003121524.o2CFOD26012586@relay-ext.ornis.com> (raw)

Hi,

I am using dblink to read data from a remote data base, insert these data in
the local database, update the red data in the remote database then continue
to do some other work on the local database in the same transaction.

My question is : Is db link transactional; If the local transaction failed,
would the update in the remote data base roll back or if the update in the
remote data base failed, would the insert in the local data base roll back. 

If not, is there a way to make db link "transactional"?

Thanks

 

view thread (6+ messages)  latest in thread

Message-ID: <201003121524.o2CFOD26012586@relay-ext.ornis.com>
Permalink:  ../201003121524.o2CFOD26012586@relay-ext.ornis.com/
Also on:    postgresql.org/message-id/201003121524.o2CFOD26012586@relay-ext.ornis.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: e.ghanem@acteos.com
  Subject: Re: Is DBLINK transactional
  In-Reply-To: <201003121524.o2CFOD26012586@relay-ext.ornis.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox