mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Add pg_has_role() family of privilege inquiry functions modeled after the
existing ones for object privileges. Update the information_schema for roles --- pg_has_role() makes this a whole lot easier, removing the need for most of the explicit joins with pg_user. The views should be a tad faster now, too. Stephen Frost and Tom Lane.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.260 2005/07/10 04:54:32 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.261 2005/07/26 00:04:19 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -58,6 +58,12 @@ extern Datum has_tablespace_privilege_id_name(PG_FUNCTION_ARGS);
|
||||
extern Datum has_tablespace_privilege_id_id(PG_FUNCTION_ARGS);
|
||||
extern Datum has_tablespace_privilege_name(PG_FUNCTION_ARGS);
|
||||
extern Datum has_tablespace_privilege_id(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_has_role_name_name(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_has_role_name_id(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_has_role_id_name(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_has_role_id_id(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_has_role_name(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_has_role_id(PG_FUNCTION_ARGS);
|
||||
|
||||
/* bool.c */
|
||||
extern Datum boolin(PG_FUNCTION_ARGS);
|
||||
|
Reference in New Issue
Block a user