Re: [GENERAL] Understanding of LOCK and pg_sleep interaction

2011-03-07 Thread David Johnston
] Understanding of LOCK and pg_sleep interaction "David Johnston" writes: > In trying to setup a test for a LOCK 'table' algorithm I attempt to > execute two transactions where the first one issues a pg_sleep(10) > while 'table' is locked and the second one attemp

Re: [GENERAL] Understanding of LOCK and pg_sleep interaction

2011-03-07 Thread Tom Lane
"David Johnston" writes: > In trying to setup a test for a LOCK 'table' algorithm I attempt to execute > two transactions where the first one issues a pg_sleep(10) while 'table' is > locked and the second one attempts LOCK 'table' during the time when the > pg_sleep is executing. When pg_sleep()

[GENERAL] Understanding of LOCK and pg_sleep interaction

2011-03-07 Thread David Johnston
Hi, In trying to setup a test for a LOCK 'table' algorithm I attempt to execute two transactions where the first one issues a pg_sleep(10) while 'table' is locked and the second one attempts LOCK 'table' during the time when the pg_sleep is executing. When pg_sleep() returns in the first trans