Log Message:
-----------
Take the ResQueueLock LW lock right at the start of the selfdeadlock check,
to avoid possible race condition.
Modified Files:
--------------
bizgres/postgresql/src/backend/utils/resscheduler:
resqueue.c (r1.15 -> r1.16)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/bizgres/bizgres/postgresql/src/backend/utils/resscheduler/resqueue.c.diff?r1=1.15&r2=1.16)