]> granicus.if.org Git - postgresql/commit
Object access hook framework, with post-creation hook.
authorRobert Haas <rhaas@postgresql.org>
Thu, 25 Nov 2010 16:48:49 +0000 (11:48 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 25 Nov 2010 16:50:13 +0000 (11:50 -0500)
commitcc1ed40d57aa68322e43a7b0a3320a6c5aff010a
tree9ea4ae8d86ab1e9709e16357a05040700acbe02a
parentd3c126544342728ab4b5c167b4f4b01a39270db5
Object access hook framework, with post-creation hook.

After a SQL object is created, we provide an opportunity for security
or logging plugins to get control; for example, a security label provider
could use this to assign an initial security label to newly created
objects.  The basic infrastructure is (hopefully) reusable for other types
of events that might require similar treatment.

KaiGai Kohei, with minor adjustments.
21 files changed:
src/backend/catalog/heap.c
src/backend/catalog/pg_constraint.c
src/backend/catalog/pg_conversion.c
src/backend/catalog/pg_namespace.c
src/backend/catalog/pg_operator.c
src/backend/catalog/pg_proc.c
src/backend/catalog/pg_type.c
src/backend/commands/dbcommands.c
src/backend/commands/foreigncmds.c
src/backend/commands/functioncmds.c
src/backend/commands/opclasscmds.c
src/backend/commands/proclang.c
src/backend/commands/tablecmds.c
src/backend/commands/tablespace.c
src/backend/commands/trigger.c
src/backend/commands/tsearchcmds.c
src/backend/commands/user.c
src/backend/rewrite/rewriteDefine.c
src/backend/storage/large_object/inv_api.c
src/backend/utils/init/globals.c
src/include/catalog/objectaccess.h [new file with mode: 0644]