Skip site navigation (1) Skip section navigation (2)

Re: bug #126, referential integrity makes big LOCK

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: xxiii(at)cyberdude(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: bug #126, referential integrity makes big LOCK
Date: 2001-02-13 23:49:56
Message-ID: 11944.982108196@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
pgsql-bugs(at)postgresql(dot)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

In response to

pgsql-bugs by date

Next:From: Josh BerkusDate: 2001-02-14 00:09:30
Subject: Re: PgSQL 7.1 beta 3 breaks ODBC
Previous:From: Tom LaneDate: 2001-02-13 23:39:36
Subject: Re: PgSQL 7.1 beta 3 breaks ODBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group