Re: bug #126, referential integrity makes big LOCK - Mailing list pgsql-bugs

From Tom Lane
Subject Re: bug #126, referential integrity makes big LOCK
Date
Msg-id 11944.982108196@sss.pgh.pa.us
Whole thread Raw
In response to bug #126, referential integrity makes big LOCK  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> delete something that referential triggers from tran 1 just checked and are relying on.
> commit
> tran 2 triggers see pre-tran 1 data and think its ok to delete.
> tran 2 finishes before tran 1.
> tran 1 already checked that tran 2 row and thinks its fine, commit
> finishes.

This is exactly what the SELECT FOR UPDATEs are in there to prevent.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: PgSQL 7.1 beta 3 breaks ODBC
Next
From: Tom Lane
Date:
Subject: Re: PgSQL 7.1 beta 3 breaks ODBC