Re: INSERT or UPDATE

From: "James B(dot) Byrne" <byrnejb(at)harte-lyne(dot)ca>
To: "Dann Corbit" <DCorbit(at)connx(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: INSERT or UPDATE
Date: 2009-04-07 00:42:47
Message-ID: 60357.65.92.52.21.1239064967.squirrel@webmail.harte-lyne.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Mon, April 6, 2009 20:23, Dann Corbit wrote:

>
> If a transaction involves rows where some succeed and some fail,
> all will roll back. If that is the desired behavior, or if all
> operations are singleton, then you won't see any problems.
>

Do I understand correctly that this means that even if the function
"handles" a failed insert then if the function occurs inside a
transaction then that transaction fails and is rolled back
regardless?

--
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:ByrneJB(at)Harte-Lyne(dot)ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dann Corbit 2009-04-07 00:49:07 Re: INSERT or UPDATE
Previous Message Ivan Sergio Borgonovo 2009-04-07 00:25:56 media server (mp3 player) on postgresql