mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
From: Massimo Dal Zotto <dz@cs.unitn.it>
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.
This commit is contained in:
@ -1,12 +1,19 @@
|
||||
-- SQL code to define the user locks functions
|
||||
-- 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,type);
|
||||
-- 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,type);
|
||||
-- select user_unlock(group,id,mode);
|
||||
--
|
||||
create function user_unlock(int4,int4,int4) returns int4
|
||||
as 'MODULE_PATHNAME'
|
||||
|
Reference in New Issue
Block a user