Re: transactions

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: gearond(at)cvc(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: transactions
Date: 2003-02-21 18:26:20
Message-ID: m3bs15ze0j.fsf@varsoon.wireboard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dennis Gearon <gearond(at)cvc(dot)net> writes:

> 1/ Does a procedure take place all in one transaction?

Yes. If you're not using BEGIN/END explicitly each query is its own
transaction.

> 2/ If I am updating/deleting/inserting into two tables, and both tables have triggers on them to
> check the relationship of the data between the tables, any way of knowing which trigger will fire
> first at the end of the transaction?

I'm not sure about this one--do the docs say anything?

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-02-21 18:33:57 Re: Mutating table (urgent)
Previous Message Cristian Custodio 2003-02-21 18:19:43 Mutating table (urgent)