]> granicus.if.org Git - postgresql/commit
Add context info to OAT_POST_CREATE security hook
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 23 Oct 2012 21:07:26 +0000 (18:07 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 23 Oct 2012 21:24:24 +0000 (18:24 -0300)
commitf4c4335a4aaf5f2ee6e741cdf4f5c8e338d86a2f
tree5367e466c939f55a3bf9dba7275887b309378b16
parent4c9d0901f135d724a9f3cfa4140a5afd44b10f08
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
16 files changed:
contrib/sepgsql/expected/ddl.out
contrib/sepgsql/hooks.c
contrib/sepgsql/relation.c
contrib/sepgsql/sepgsql.h
contrib/sepgsql/sql/ddl.sql
doc/src/sgml/sepgsql.sgml
src/backend/bootstrap/bootparse.y
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/catalog/toasting.c
src/backend/commands/cluster.c
src/backend/commands/indexcmds.c
src/backend/commands/tablecmds.c
src/include/catalog/heap.h
src/include/catalog/index.h
src/include/catalog/objectaccess.h