summaryrefslogtreecommitdiff
path: root/src/backend/commands/publicationcmds.c
diff options
context:
space:
mode:
authorAlvaro Herrera2017-01-20 19:45:02 +0000
committerAlvaro Herrera2017-01-20 19:45:02 +0000
commit50cf1c80e6be80cc620749824fe9e3cd7f6c118e (patch)
tree91ae046f8757e0b8a90402a5997cf8248fb817b8 /src/backend/commands/publicationcmds.c
parenta600ee9e3fcc43d4497d18d837f1e86148ca7580 (diff)
Record dependencies on owners for logical replication objects
This was forgotten in 665d1fad99e7b11678b0d5fa24d2898424243cd6 and caused the whole buildfarm to become red for a little while. Author: Petr JelĂ­nek Also fix a typo in a nearby error message.
Diffstat (limited to 'src/backend/commands/publicationcmds.c')
-rw-r--r--src/backend/commands/publicationcmds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/commands/publicationcmds.c b/src/backend/commands/publicationcmds.c
index 21e523deb08..63dcc10bd31 100644
--- a/src/backend/commands/publicationcmds.c
+++ b/src/backend/commands/publicationcmds.c
@@ -218,6 +218,8 @@ CreatePublication(CreatePublicationStmt *stmt)
CatalogUpdateIndexes(rel, tup);
heap_freetuple(tup);
+ recordDependencyOnOwner(PublicationRelationId, puboid, GetUserId());
+
ObjectAddressSet(myself, PublicationRelationId, puboid);
/* Make the changes visible. */