Skip site navigation (1) Skip section navigation (2)

Re: cache problem (v2)

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: cache problem (v2)
Date: 2007-07-17 15:28:49
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
On Tue, Jul 17, 2007 at 07:59:32AM +0200, De Leeuw Guy wrote:
> the COPY start a transaction 

Yes.  _Everything_ is in a transaction in PostgreSQL.  If you don't
explicitly do BEGIN. . .COMMIT, then the system does it implicitly
for each statement.

> if yes each time my trigger select a data
> and update then the value returned by the read are the value before the
> transaction. It's true ? if yes my question are : also in the same
> transaction (like my trigger) ?

Your trigger function runs inside the transaction of the calling
statement, unless you have explicitly started a transaction. 

I'm starting to get the impression you have a misunderstanding of how
PostgreSQL works.  I think you maybe need to spend some more time
with the manual.  If you find the English version puzzling, you can
also work in French (at or German (I
see a translation at; I dunno if
there's a more recent one).  Sorry, AFAIK there isn't one in Dutch.


Andrew Sullivan  | ajs(at)crankycanuck(dot)ca
The whole tendency of modern prose is away from concreteness.
		--George Orwell

In response to


pgsql-admin by date

Next:From: Abraham, DannyDate: 2007-07-17 15:45:29
Subject: plpgsql debugger
Previous:From: Tom LaneDate: 2007-07-17 14:43:45
Subject: Re: compiling C Funktion for PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group