Re: [GENERAL] Foreign keys causing conflicts leading to serialization failures

2008-04-02 Thread Peter Schuller
> A SELECT ... FROM "othertable" ... FOR SHARE won't conflict with a > concurrent update on "atable". > > Do I guess right that there was also an UPDATE on the row in > "othertable"? Yes, that was what I meant to convey. Sorry if I was not clear. The point was that an INSERT to "atable" conflicte

Re: [GENERAL] Foreign keys causing conflicts leading to serialization failures

2008-04-02 Thread Albe Laurenz
Peter Schuller wrote: > Using PostgreSQL 8.2, I have "atable" one of whose columns reference a > column in "othertable". I see serialization failures as a result of > *inserts* to atable in the context of: > > '"SELECT 1 FROM ONLY othertable x WHERE "otherid" = $1 FOR SHARE OF > x" ' in 'INSER

[GENERAL] Foreign keys causing conflicts leading to serialization failures

2008-04-01 Thread Peter Schuller
Hello, Using PostgreSQL 8.2, I have "atable" one of whose columns reference a column in "othertable". I see serialization failures as a result of *inserts* to atable in the context of: '"SELECT 1 FROM ONLY othertable x WHERE "otherid" = $1 FOR SHARE OF x" ' in 'INSERT INTO atable (otherid, co