aboutsummaryrefslogtreecommitdiff
path: root/src/include/executor
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-07-09 14:06:01 +0000
committerRobert Haas <rhaas@postgresql.org>2010-07-09 14:06:01 +0000
commitf4122a8d50a56787770cb87e8269d6b48775ff4e (patch)
tree1e4a835e464124739d5106bffadef0631d5f0116 /src/include/executor
parentb40466c33731eed31e08f116487259d800eb1891 (diff)
downloadpostgresql-f4122a8d50a56787770cb87e8269d6b48775ff4e.tar.gz
postgresql-f4122a8d50a56787770cb87e8269d6b48775ff4e.zip
Add a hook in ExecCheckRTPerms().
This hook allows a loadable module to gain control when table permissions are checked. It is expected to be used by an eventual SE-PostgreSQL implementation, but there are other possible applications as well. A sample contrib module can be found in the archives at: http://archives.postgresql.org/pgsql-hackers/2010-05/msg01095.php Robert Haas and Stephen Frost
Diffstat (limited to 'src/include/executor')
-rw-r--r--src/include/executor/executor.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h
index b2424a0d087..119cc2505b2 100644
--- a/src/include/executor/executor.h
+++ b/src/include/executor/executor.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/executor/executor.h,v 1.168 2010/02/26 02:01:24 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/executor/executor.h,v 1.169 2010/07/09 14:06:01 rhaas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -74,6 +74,10 @@ extern PGDLLIMPORT ExecutorRun_hook_type ExecutorRun_hook;
typedef void (*ExecutorEnd_hook_type) (QueryDesc *queryDesc);
extern PGDLLIMPORT ExecutorEnd_hook_type ExecutorEnd_hook;
+/* Hook for plugins to get control in ExecCheckRTPerms() */
+typedef void (*ExecutorCheckPerms_hook_type) (List *);
+extern PGDLLIMPORT ExecutorCheckPerms_hook_type ExecutorCheckPerms_hook;
+
/*
* prototypes from functions in execAmi.c