2 CREATE OR REPLACE FUNCTION logout() RETURNS integer AS $$
3 -- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
4 -- See www.xtuple.com/CPAL for the full text of the software license.
6 PERFORM pg_advisory_unlock(datid::integer, procpid)
8 WHERE(procpid = pg_backend_pid());
12 $$ LANGUAGE 'plpgsql';