Re: Transaction question

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Fredy Ramirez <formateli(at)cantv(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Transaction question
Date: 2003-08-14 00:52:54
Message-ID: 200308140052.h7E0qs624143@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Fredy Ramirez wrote:
>
> Hi, I have a question about transactions.
>
> I am developing a Postgresql client.
>
> If I start a transaction in a Postgresql client code, and in this
> process a trigger is executed. Are all the processes within the trigger
> in the transaction too?

Yes, the trigger is in the same transaction as the statement that
triggered it.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-08-14 02:23:58 Re: drop/add fk in transaction
Previous Message Dustin Sallings 2003-08-14 00:46:59 Re: Support contracts (was Re: Commercial support?)