BUG advisory_lock - Mailing list pgsql-bugs

From
Subject BUG advisory_lock
Date
Msg-id 005501c8d1f3$2fbe5500$1200a8c0@kharkov.localhost
Whole thread Raw
Responses Re: BUG advisory_lock
Re: BUG advisory_lock
List pgsql-bugs
DECLARE
  varUnlocked boolean;
BEGIN
varUnlocked:=3D pg_try_advisory_lock( 783264760123456 ); -- Try to lock fun=
ction
IF not varUnlocked THEN return NULL; END IF; -- exit if locking is unsucess=
full

WRONG QUERY HERE WHICH INTERRUPT EXECUTION

varUnlocked:=3D pg_advisory_unlock( 783264760123456 ); -- unlock function
END

NEXT time when I run this function I always get NULL until server reboot

EXPECTED: Pg must unlock if function execution failed=

pgsql-bugs by date:

Previous
From: "Glenn"
Date:
Subject: BUG #4254: wont let me install it says account name already used or somthing
Next
From: Graham Leggett
Date:
Subject: Re: BUG #4116: Cannot create tablespace: could not set permissions on directory