Re: Revisited: Transactions, insert unique.

From: Joachim Achtzehnter <joachim(at)kraut(dot)bc(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Revisited: Transactions, insert unique.
Date: 2000-04-24 18:01:57
Message-ID: Pine.LNX.4.21.0004241052100.32474-100000@penguin.kraut.bc.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Today, in a message to Joachim Achtzehnter, Ed Loehr wrote:
>
> More efficient, yes. However, given the lack of "statement-only"
> aborts and the state of pg error codes (all strings, no numeric
> codes), the programmatic/query check appears not only compulsory but
> simpler code-wise.

Given current limitations of the postgresql implementation, you are
certainly right: there is no other choice. I was merely countering the
suggestion that there was something wrong with the approach of simply
trying the insert first. It is a perfectly valid approach when used with
an SQL92 compliant database. We just have to live without it until
postgresql improves on this point. This is certainly not a show stopper
for most of us unless perhaps when somebody has to port a ton of code from
another database :-(

Joachim

--
private: joachim(at)kraut(dot)bc(dot)ca (http://www.kraut.bc.ca)
work: joachim(at)mercury(dot)bc(dot)ca (http://www.mercury.bc.ca)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ed Loehr 2000-04-24 19:10:21 Re: Connecting website with SQL-database.....
Previous Message Ross J. Reedstrom 2000-04-24 17:50:34 Re: PGDATESTYLE