aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2012-03-09 14:34:56 -0500
committerRobert Haas <rhaas@postgresql.org>2012-03-09 14:34:56 -0500
commit07d1edb954bc8f5d0e2c010dec8482328af38cb8 (patch)
tree64418e4a346496da207c943b460cd692775f971d /src/backend/commands/tablecmds.c
parentb14953932dfdda7d915b9e276a09df8458efeec8 (diff)
downloadpostgresql-07d1edb954bc8f5d0e2c010dec8482328af38cb8.tar.gz
postgresql-07d1edb954bc8f5d0e2c010dec8482328af38cb8.zip
Extend object access hook framework to support arguments, and DROP.
This allows loadable modules to get control at drop time, perhaps for the purpose of performing additional security checks or to log the event. The initial purpose of this code is to support sepgsql, but other applications should be possible as well. KaiGai Kohei, reviewed by me.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r--src/backend/commands/tablecmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index cd4490a1c24..25ca356b867 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -4382,7 +4382,7 @@ ATExecAddColumn(List **wqueue, AlteredTableInfo *tab, Relation rel,
/* Post creation hook for new attribute */
InvokeObjectAccessHook(OAT_POST_CREATE,
- RelationRelationId, myrelid, newattnum);
+ RelationRelationId, myrelid, newattnum, NULL);
heap_close(pgclass, RowExclusiveLock);