mirror of https://github.com/postgres/postgres
77 lines
1.7 KiB
MySQL
77 lines
1.7 KiB
MySQL
-- user_locks.sql --
|
|
--
|
|
-- SQL code to define the user locks functions.
|
|
--
|
|
-- Copyright (c) 1998, Massimo Dal Zotto <dz@cs.unitn.it>
|
|
--
|
|
-- This file is distributed under the GNU General Public License
|
|
-- either version 2, or (at your option) any later version.
|
|
|
|
-- select user_lock(group,id,mode);
|
|
--
|
|
create function user_lock(int4,int4,int4) returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- select user_unlock(group,id,mode);
|
|
--
|
|
create function user_unlock(int4,int4,int4) returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- select user_write_lock(group,id);
|
|
--
|
|
create function user_write_lock(int4,int4) returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- select user_write_unlock(group,id);
|
|
--
|
|
create function user_write_unlock(int4,int4) returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- select user_write_lock(group,oid);
|
|
--
|
|
create function user_write_lock(int4,oid) returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- select user_write_unlock(group,oid);
|
|
--
|
|
create function user_write_unlock(int4,oid) returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- select user_write_lock_oid(oid);
|
|
--
|
|
create function user_write_lock_oid(oid) returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- select user_write_unlock_oid(oid);
|
|
--
|
|
create function user_write_unlock_oid(oid) returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- select user_write_lock_oid(int4);
|
|
--
|
|
create function user_write_lock_oid(int4) returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- select user_write_unlock_oid(int4);
|
|
--
|
|
create function user_write_unlock_oid(int4) returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- select user_unlock_all();
|
|
--
|
|
create function user_unlock_all() returns int4
|
|
as 'MODULE_PATHNAME'
|
|
language 'c';
|
|
|
|
-- end of file
|