summaryrefslogtreecommitdiff
path: root/src/backend/commands
diff options
context:
space:
mode:
authorAmit Kapila2025-03-18 08:36:51 +0000
committerAmit Kapila2025-03-18 08:36:51 +0000
commit01e27aab05f5f83ab4b79688795848d787dab738 (patch)
tree1a76eb6e029a84281a160349fd837603455bda2d /src/backend/commands
parentc462b054ba605d23c1ec139fcca3d758ac139026 (diff)
Use correct variable name in publicationcmds.c.
subid was used at few places for publicationid in publicationcmds.c/.h. Author: vignesh C <[email protected]> Reviewed-by: Ashutosh Bapat <[email protected]> Discussion: https://postgr.es/m/CALDaNm1KqJ0VFfDJRPbfYi9Shz6LHFEE-Ckn+eqsePfKhebv9w@mail.gmail.com
Diffstat (limited to 'src/backend/commands')
-rw-r--r--src/backend/commands/publicationcmds.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/commands/publicationcmds.c b/src/backend/commands/publicationcmds.c
index 3091d36ce98..0b23d94c38e 100644
--- a/src/backend/commands/publicationcmds.c
+++ b/src/backend/commands/publicationcmds.c
@@ -2052,7 +2052,7 @@ AlterPublicationOwner_internal(Relation rel, HeapTuple tup, Oid newOwnerId)
ObjectAddress
AlterPublicationOwner(const char *name, Oid newOwnerId)
{
- Oid subid;
+ Oid pubid;
HeapTuple tup;
Relation rel;
ObjectAddress address;
@@ -2068,11 +2068,11 @@ AlterPublicationOwner(const char *name, Oid newOwnerId)
errmsg("publication \"%s\" does not exist", name)));
pubform = (Form_pg_publication) GETSTRUCT(tup);
- subid = pubform->oid;
+ pubid = pubform->oid;
AlterPublicationOwner_internal(rel, tup, newOwnerId);
- ObjectAddressSet(address, PublicationRelationId, subid);
+ ObjectAddressSet(address, PublicationRelationId, pubid);
heap_freetuple(tup);
@@ -2085,19 +2085,19 @@ AlterPublicationOwner(const char *name, Oid newOwnerId)
* Change publication owner -- by OID
*/
void
-AlterPublicationOwner_oid(Oid subid, Oid newOwnerId)
+AlterPublicationOwner_oid(Oid pubid, Oid newOwnerId)
{
HeapTuple tup;
Relation rel;
rel = table_open(PublicationRelationId, RowExclusiveLock);
- tup = SearchSysCacheCopy1(PUBLICATIONOID, ObjectIdGetDatum(subid));
+ tup = SearchSysCacheCopy1(PUBLICATIONOID, ObjectIdGetDatum(pubid));
if (!HeapTupleIsValid(tup))
ereport(ERROR,
(errcode(ERRCODE_UNDEFINED_OBJECT),
- errmsg("publication with OID %u does not exist", subid)));
+ errmsg("publication with OID %u does not exist", pubid)));
AlterPublicationOwner_internal(rel, tup, newOwnerId);