aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/cluster.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2012-10-23 18:07:26 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2012-10-23 18:24:24 -0300
commitf4c4335a4aaf5f2ee6e741cdf4f5c8e338d86a2f (patch)
tree5367e466c939f55a3bf9dba7275887b309378b16 /src/backend/commands/cluster.c
parent4c9d0901f135d724a9f3cfa4140a5afd44b10f08 (diff)
downloadpostgresql-f4c4335a4aaf5f2ee6e741cdf4f5c8e338d86a2f.tar.gz
postgresql-f4c4335a4aaf5f2ee6e741cdf4f5c8e338d86a2f.zip
Add context info to OAT_POST_CREATE security hook
... and have sepgsql use it to determine whether to check permissions during certain operations. Indexes that are being created as a result of REINDEX, for instance, do not need to have their permissions checked; they were already checked when the index was created. Author: KaiGai Kohei, slightly revised by me
Diffstat (limited to 'src/backend/commands/cluster.c')
-rw-r--r--src/backend/commands/cluster.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index cfec413d54f..de71a3594d4 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -643,6 +643,7 @@ make_new_heap(Oid OIDOldHeap, Oid NewTableSpace)
ONCOMMIT_NOOP,
reloptions,
false,
+ true,
true);
Assert(OIDNewHeap != InvalidOid);