diff options
author | Tomas Vondra | 2022-03-25 19:12:50 +0000 |
---|---|---|
committer | Tomas Vondra | 2022-03-25 20:07:17 +0000 |
commit | 05843b1aa49df2ecc9b97c693b755bd1b6f856a9 (patch) | |
tree | 95d7199c707bb21b8f5af3966b746d8a4249851d /src/backend/replication/pgoutput/pgoutput.c | |
parent | 174877f1e344812f620fd8891af97104d5dfca13 (diff) |
Minor improvements in sequence decoding code and docs
A couple minor comment improvements and code cleanups, based on
post-commit feedback to the sequence decoding patch.
Author: Amit Kapila, vignesh C
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/replication/pgoutput/pgoutput.c')
-rw-r--r-- | src/backend/replication/pgoutput/pgoutput.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/pgoutput/pgoutput.c b/src/backend/replication/pgoutput/pgoutput.c index 4cdc698cbb3..292e7299d88 100644 --- a/src/backend/replication/pgoutput/pgoutput.c +++ b/src/backend/replication/pgoutput/pgoutput.c @@ -1804,7 +1804,8 @@ get_rel_sync_entry(PGOutputData *data, Relation relation) { Oid schemaId = get_rel_namespace(relid); List *pubids = GetRelationPublications(relid); - char objectType = pub_get_object_type_for_relkind(get_rel_relkind(relid)); + char relkind = get_rel_relkind(relid); + char objectType = pub_get_object_type_for_relkind(relkind); /* * We don't acquire a lock on the namespace system table as we build * the cache entry using a historic snapshot and all the later changes @@ -1815,7 +1816,6 @@ get_rel_sync_entry(PGOutputData *data, Relation relation) Oid publish_as_relid = relid; int publish_ancestor_level = 0; bool am_partition = get_rel_relispartition(relid); - char relkind = get_rel_relkind(relid); List *rel_publications = NIL; /* Reload publications if needed before use. */ |