diff options
author | Robert Haas <rhaas@postgresql.org> | 2013-04-05 08:51:31 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2013-04-05 08:51:31 -0400 |
commit | e965e6344cfaff0708a032721b56f61eea777bc5 (patch) | |
tree | 51f5e7f7c97fd7a27779407663130fcc29978022 /src/backend/tcop/fastpath.c | |
parent | 52f436b807b0d02203ea6be19bafa56e4e1381e8 (diff) | |
download | postgresql-e965e6344cfaff0708a032721b56f61eea777bc5.tar.gz postgresql-e965e6344cfaff0708a032721b56f61eea777bc5.zip |
sepgsql: Enforce db_schema:search permission.
KaiGai Kohei, with comment and doc wordsmithing by me
Diffstat (limited to 'src/backend/tcop/fastpath.c')
-rw-r--r-- | src/backend/tcop/fastpath.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/tcop/fastpath.c b/src/backend/tcop/fastpath.c index 21c979753e0..016e7d9ec66 100644 --- a/src/backend/tcop/fastpath.c +++ b/src/backend/tcop/fastpath.c @@ -22,6 +22,7 @@ #include "access/htup_details.h" #include "access/xact.h" +#include "catalog/objectaccess.h" #include "catalog/pg_proc.h" #include "libpq/libpq.h" #include "libpq/pqformat.h" @@ -355,6 +356,7 @@ HandleFunctionRequest(StringInfo msgBuf) if (aclresult != ACLCHECK_OK) aclcheck_error(aclresult, ACL_KIND_NAMESPACE, get_namespace_name(fip->namespace)); + InvokeNamespaceSearchHook(fip->namespace, true); aclresult = pg_proc_aclcheck(fid, GetUserId(), ACL_EXECUTE); if (aclresult != ACLCHECK_OK) |