diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/pg_proc.h | 31 | ||||
| -rw-r--r-- | src/include/utils/acl.h | 18 | ||||
| -rw-r--r-- | src/include/utils/builtins.h | 20 |
3 files changed, 66 insertions, 3 deletions
diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index 1208e68692..cee5017a69 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pg_proc.h,v 1.189 2001/06/07 00:09:30 momjian Exp $ + * $Id: pg_proc.h,v 1.190 2001/06/12 15:58:34 momjian Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -2627,6 +2627,35 @@ DESCR("unary plus"); DATA(insert OID = 1915 ( numeric_uplus PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_uplus - )); DESCR("unary plus"); +DATA(insert OID = 1920 ( has_table_privilege PGUID 12 f t f t 3 f 16 "25 25 25" 100 0 0 100 has_table_privilege_tname_tname - )); +DESCR("user privilege on relation by text username, text relname"); +DATA(insert OID = 1921 ( has_table_privilege PGUID 12 f t f t 3 f 16 "25 19 25" 100 0 0 100 has_table_privilege_tname_name - )); +DESCR("user privilege on relation by text username, name relname"); +DATA(insert OID = 1922 ( has_table_privilege PGUID 12 f t f t 3 f 16 "19 25 25" 100 0 0 100 has_table_privilege_name_tname - )); +DESCR("user privilege on relation by name username, text relname"); +DATA(insert OID = 1923 ( has_table_privilege PGUID 12 f t f t 3 f 16 "19 19 25" 100 0 0 100 has_table_privilege_name_name - )); +DESCR("user privilege on relation by name username, name relname"); +DATA(insert OID = 1924 ( has_table_privilege PGUID 12 f t f t 2 f 16 "25 25" 100 0 0 100 has_table_privilege_tname - )); +DESCR("current user privilege on relation by text relname"); +DATA(insert OID = 1925 ( has_table_privilege PGUID 12 f t f t 2 f 16 "19 25" 100 0 0 100 has_table_privilege_name - )); +DESCR("current user privilege on relation by name relname"); + +DATA(insert OID = 1926 ( has_table_privilege PGUID 12 f t f t 3 f 16 "25 26 25" 100 0 0 100 has_table_privilege_tname_id - )); +DESCR("user privilege on relation by text username, rel oid"); +DATA(insert OID = 1927 ( has_table_privilege PGUID 12 f t f t 3 f 16 "19 26 25" 100 0 0 100 has_table_privilege_name_id - )); +DESCR("user privilege on relation by text username, rel oid"); +DATA(insert OID = 1928 ( has_table_privilege PGUID 12 f t f t 2 f 16 "26 25" 100 0 0 100 has_table_privilege_id - )); +DESCR("current user privilege on relation by rel oid"); + +DATA(insert OID = 1929 ( has_table_privilege PGUID 12 f t f t 3 f 16 "26 25 25" 100 0 0 100 has_table_privilege_id_tname - )); +DESCR("user privilege on relation by usesysid, relname"); +DATA(insert OID = 1930 ( has_table_privilege PGUID 12 f t f t 3 f 16 "26 19 25" 100 0 0 100 has_table_privilege_id_name - )); +DESCR("user privilege on relation by usesysid, relname"); + +DATA(insert OID = 1931 ( has_table_privilege PGUID 12 f t f t 3 f 16 "26 26 25" 100 0 0 100 has_table_privilege_id_id - )); +DESCR("user privilege on relation by usesysid, rel oid"); + + /* * prototypes for functions pg_proc.c */ diff --git a/src/include/utils/acl.h b/src/include/utils/acl.h index 1cf751fad1..f03d6e2e1b 100644 --- a/src/include/utils/acl.h +++ b/src/include/utils/acl.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: acl.h,v 1.34 2001/06/09 23:21:55 petere Exp $ + * $Id: acl.h,v 1.35 2001/06/12 15:58:34 momjian Exp $ * * NOTES * For backward-compatibility purposes we have to allow there @@ -191,6 +191,22 @@ extern Datum aclcontains(PG_FUNCTION_ARGS); extern const char *aclparse(const char *s, AclItem *aip, unsigned *modechg); extern char *makeAclString(const char *privileges, const char *grantee, char grant_or_revoke); +extern Datum has_table_privilege_tname_tname(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_tname_name(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_name_tname(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_name_name(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_tname(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_name(PG_FUNCTION_ARGS); + +extern Datum has_table_privilege_tname_id(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_name_id(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_id(PG_FUNCTION_ARGS); + +extern Datum has_table_privilege_id_tname(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_id_name(PG_FUNCTION_ARGS); + +extern Datum has_table_privilege_id_id(PG_FUNCTION_ARGS); + /* * prototypes for functions in aclchk.c */ diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 109d144494..ea53e50303 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: builtins.h,v 1.150 2001/06/09 22:16:17 tgl Exp $ + * $Id: builtins.h,v 1.151 2001/06/12 15:58:34 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -22,6 +22,24 @@ /* * Defined in adt/ */ + +/* acl.c */ +extern Datum has_table_privilege_tname_tname(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_tname_name(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_name_tname(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_name_name(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_tname(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_name(PG_FUNCTION_ARGS); + +extern Datum has_table_privilege_tname_id(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_name_id(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_id(PG_FUNCTION_ARGS); + +extern Datum has_table_privilege_id_tname(PG_FUNCTION_ARGS); +extern Datum has_table_privilege_id_name(PG_FUNCTION_ARGS); + +extern Datum has_table_privilege_id_id(PG_FUNCTION_ARGS); + /* bool.c */ extern Datum boolin(PG_FUNCTION_ARGS); extern Datum boolout(PG_FUNCTION_ARGS); |
