aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/acl.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-05-03 22:45:26 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-05-03 22:45:26 +0000
commitcb98e6fb8fd4f1ca955a85d5c0088e42e77a04f0 (patch)
tree8b7aa603d809eb71b48b923a299189a54e4df544 /src/include/utils/acl.h
parent5320c6cf6b21811eda1910a7df6f05b992fe2aea (diff)
downloadpostgresql-cb98e6fb8fd4f1ca955a85d5c0088e42e77a04f0.tar.gz
postgresql-cb98e6fb8fd4f1ca955a85d5c0088e42e77a04f0.zip
Create a syscache for pg_database-indexed-by-oid, and make use of it
in various places that were previously doing ad hoc pg_database searches. This may speed up database-related privilege checks a little bit, but the main motivation is to eliminate the performance reason for having ReverifyMyDatabase do such a lot of stuff (viz, avoiding repeat scans of pg_database during backend startup). The locking reason for having that routine is about to go away, and it'd be good to have the option to break it up.
Diffstat (limited to 'src/include/utils/acl.h')
-rw-r--r--src/include/utils/acl.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/include/utils/acl.h b/src/include/utils/acl.h
index 7651fba290c..27aaf0dfbf7 100644
--- a/src/include/utils/acl.h
+++ b/src/include/utils/acl.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/acl.h,v 1.95 2006/04/30 21:15:33 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/utils/acl.h,v 1.96 2006/05/03 22:45:26 tgl Exp $
*
* NOTES
* An ACL array is simply an array of AclItems, representing the union
@@ -24,8 +24,6 @@
#ifndef ACL_H
#define ACL_H
-#include "access/htup.h"
-#include "access/tupdesc.h"
#include "nodes/parsenodes.h"
#include "utils/array.h"
@@ -252,8 +250,6 @@ extern AclMode pg_class_aclmask(Oid table_oid, Oid roleid,
AclMode mask, AclMaskHow how);
extern AclMode pg_database_aclmask(Oid db_oid, Oid roleid,
AclMode mask, AclMaskHow how);
-extern AclMode pg_database_tuple_aclmask(HeapTuple db_tuple, TupleDesc tupdesc,
- Oid roleid, AclMode mask, AclMaskHow how);
extern AclMode pg_proc_aclmask(Oid proc_oid, Oid roleid,
AclMode mask, AclMaskHow how);
extern AclMode pg_language_aclmask(Oid lang_oid, Oid roleid,