mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-23 23:57:18 +02:00
Here is a tar file the new directories, which substitute the old ones in contrib. Please remove the old directories array, datetime, miscutil, string and userlock before unpacking the tar file in contrib. Note that as the modules are now installed in lib/modules I install all my sql code in lib/sql. In my opinion also the other contributors should follow these rules.
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
|