Re: [BUGS] BUG #1083: Insert query reordering interacts badly with

2004-02-26 Thread Martin Langhoff
Tom Lane wrote: How about SELECT nextval('seq'); -- ignore result INSERT INTO ... VALUES (currval('seq'), currval('seq')); Well, it works for my sample case, I have to agree. Maybe I should mention that I tried to boil down the bugreport to the simplest repro case I could. My actual

Re: [BUGS] BUG #1083: Insert query reordering interacts badly with

2004-02-26 Thread Martin Langhoff (Catalyst IT)
Tom Lane wrote: "PostgreSQL Bugs List" <[EMAIL PROTECTED]> writes: /* this statement will reverse the order of CURRVAL()/NEXTVAL() to match the column order of the table */ INSERT INTO testing (col_b, col_a) VALUES (NEXTVAL('seq'), CURRVAL('seq')); This is not a bug. The order of evalua