diff options
author | Robert Haas <rhaas@postgresql.org> | 2013-03-17 22:55:14 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2013-03-17 22:57:26 -0400 |
commit | 05f3f9c7b2922b2a064418b5cd87b372d1b73412 (patch) | |
tree | 7532a7b338b36b659ddcfba50ebfcad22852e946 /src/backend/commands/sequence.c | |
parent | 6ac7facdd3990baf47efc124e9d7229422a06452 (diff) | |
download | postgresql-05f3f9c7b2922b2a064418b5cd87b372d1b73412.tar.gz postgresql-05f3f9c7b2922b2a064418b5cd87b372d1b73412.zip |
Extend object-access hook machinery to support post-alter events.
This also slightly widens the scope of what we support in terms of
post-create events.
KaiGai Kohei, with a few changes, mostly to the comments, by me
Diffstat (limited to 'src/backend/commands/sequence.c')
-rw-r--r-- | src/backend/commands/sequence.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c index de41c8a1c71..225edd9f9b7 100644 --- a/src/backend/commands/sequence.c +++ b/src/backend/commands/sequence.c @@ -20,6 +20,7 @@ #include "access/xlogutils.h" #include "catalog/dependency.h" #include "catalog/namespace.h" +#include "catalog/objectaccess.h" #include "catalog/pg_type.h" #include "commands/defrem.h" #include "commands/sequence.h" @@ -487,6 +488,8 @@ AlterSequence(AlterSeqStmt *stmt) if (owned_by) process_owned_by(seqrel, owned_by); + InvokeObjectPostAlterHook(RelationRelationId, relid, 0); + relation_close(seqrel, NoLock); return relid; |