trigger, transactions, eek - Mailing list pgsql-novice

From Chris Thompson
Subject trigger, transactions, eek
Date
Msg-id Pine.LNX.4.33L2.0205142010180.26109-100000@boyce.ednet.co.uk
Whole thread Raw
Responses Re: trigger, transactions, eek  (Manuel Sugawara <masm@fciencias.unam.mx>)
List pgsql-novice
Hi,
I'm trying to find some info on how to safely maintain 2 separate
databases.

Basically, an INSERT or UPDATE will happen the master db, and this should
call a trigger to a cpp app that will exec the appropriate query on the
second db.

I need to be able to check that all is when with both inserts, so would
expect (wrongly probably) to need to use a transaction within a procedure,
and the app that the trigger calls, to also do a transaction of some kind.
This seems, after some browsing, to either be the wrong thing to do, or
prohibited by the fact that the trigger will not be called until after the
transaction
is commited.

If anyone has any pointers on how i should approach this, or whatever, i
would be greatful.

Cheers,
Chris


--

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender. Any
offers or quotation of service are subject to formal specification.
Errors and omissions excepted.  Please note that any views or opinions
presented in this email are solely those of the author and do not
necessarily represent those of edNET or lightershade ltd. Finally, the
recipient should check this email and any attachments for the presence of
viruses.  edNET and lightershade ltd accepts no liability for any damage
caused by any virus transmitted by this email.

--
--
Virus scanned by edNET.

pgsql-novice by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: Did I install version 7.2.1?
Next
From: John Taylor
Date:
Subject: Catching errors inside transactions