RE: [HACKERS] DeadLockCheck is buggy

2001-01-17 Thread Mikheev, Vadim
> > I have been studying DeadLockCheck for most of a day now, > > and I doubt that this is the only bug lurking in it. > > I think that we really ought to throw it away and start > > over, because it doesn't look to me at all like a standard > > deadlock-detection algorithm. The standard way of

Re: [HACKERS] DeadLockCheck is buggy

2001-01-16 Thread Bruce Momjian
> I have been studying DeadLockCheck for most of a day now, and I doubt > that this is the only bug lurking in it. I think that we really ought > to throw it away and start over, because it doesn't look to me at all > like a standard deadlock-detection algorithm. The standard way of doing Go ah

[HACKERS] DeadLockCheck is buggy

2001-01-16 Thread Tom Lane
Create three tables and start four transactions, then do: XACT 1: LOCK TABLE A; XACT 2: LOCK TABLE B IN ROW SHARE MODE; XACT 3: LOCK TABLE B IN ROW EXCLUSIVE MODE; XACT 4: LOCK TABLE C; XACT 2: LOCK TABLE C; XACT 3: LOCK TABLE C; XACT 1: LOCK TABLE B IN SHARE MODE; << wait at least