Command execution

From: Aaron Spiteri <azzmosphere(at)gmail(dot)com>
To: Postgres Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Command execution
Date: 2008-07-03 13:15:33
Message-ID: 610F90B4-C869-4B70-8DCF-A8A55731F1C1@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi guys,

I have been following the mailing list and reading the source code
for a little while, and was wandering if someone could fill in the
gaps for me. Does PostgresQL view updates and inserts performed in a
function as part of the same transaction or are they considered
separate transactions:

For instance say I had a function name foo and ran the command:

SELECT foo();

Inside foo there was a INSERT and UPDATE, and the INSERT failed but
the UPDATE succeeded would the UPDATE be rolled back?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message A. Kretschmer 2008-07-03 13:22:50 Re: Command execution
Previous Message daveg 2008-07-03 12:55:01 Re: [PATCHES] pg_dump lock timeout