Skip to content

Commit

Permalink
fix #1: Row filtering for logical replication
Browse files Browse the repository at this point in the history
  • Loading branch information
Euler Taveira committed Aug 23, 2019
1 parent ec578e3 commit b912243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/commands/publicationcmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,8 @@ PublicationAddTables(Oid pubid, List *rels, bool if_not_exists,

/* Must be owner of the table or superuser. */
if (!pg_class_ownercheck(RelationGetRelid(rel->relation), GetUserId()))
aclcheck_error(ACLCHECK_NOT_OWNER, get_relkind_objtype(rel->rd_rel->relkind),
RelationGetRelationName(rel));
aclcheck_error(ACLCHECK_NOT_OWNER, get_relkind_objtype(rel->relation->rd_rel->relkind),
RelationGetRelationName(rel->relation));

obj = publication_add_relation(pubid, rel, if_not_exists);
if (stmt)
Expand Down

0 comments on commit b912243

Please sign in to comment.