Re: How to check for successfull inserts

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Arguile" <arguile(at)lucentstudios(dot)com>
Cc: "pgsql General List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to check for successfull inserts
Date: 2002-03-09 15:28:23
Message-ID: 4088.1015687703@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Arguile" <arguile(at)lucentstudios(dot)com> writes:
>> The only other thing I can think of off the top of my head is to
>> count(*) the table in question before and after and return the
>> difference. As you're within a transaction it will be accurate,
>> if rather unwieldy.

> *Danger! Danger Will Robinson!*

> I wasn't thinking properly when I typed this.

Yes you were. Set the transaction mode to SERIALIZABLE and it'll
work just fine ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-03-09 15:37:58 Re: Fsync on/off For Various Filesystems/Platforms (Ending Note)
Previous Message Rob Hoopman 2002-03-09 15:16:44 RULE with conditional behaviour?