Re: [GENERAL] Revisited: Transactions, insert unique.

2000-04-27 Thread Joachim Achtzehnter
In a message to and Hiroshi Inoue pgsql-general, Ed Loehr wrote: > > -- Within transaction A -- > BEGIN; > SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; > > -- Within transaction B -- > BEGIN; > SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; > INSER

Re: [GENERAL] Revisited: Transactions, insert unique.

2000-04-25 Thread Joachim Achtzehnter
In a message to Ed Loehr and pgsql-general, Lincoln Yeoh wrote: > > Transaction A > begin; > insert into test (a,b) select 4,'four' from test > where not exists (select * from test where a=4); > > Transaction B > begin; > insert into test (a,b) select 4,'four' from test > where not exists (select

Re: [GENERAL] Revisited: Transactions, insert unique.

2000-04-25 Thread Joachim Achtzehnter
Today, in a message to pgsql-general, Ross J. Reedstrom wrote: > > On Mon, Apr 24, 2000 at 09:23:48PM -0700, Joachim Achtzehnter wrote: > > > > I suspect, though, that to support statement-level aborts > > more is needed than an overhaul of the error system. Statem

Re: [GENERAL] Revisited: Transactions, insert unique.

2000-04-24 Thread Joachim Achtzehnter
Today, in a message to pgsql-general, David Boerwinkle wrote: > > it seems like this is something that ought to be handled > programmatically. That is, query the table to see if the row exists, > then decide what you are going to do (insert or update) based on the > results of your query. It ce