@@ -2052,7 +2052,7 @@ AlterPublicationOwner_internal(Relation rel, HeapTuple tup, Oid newOwnerId)
2052
2052
ObjectAddress
2053
2053
AlterPublicationOwner (const char * name , Oid newOwnerId )
2054
2054
{
2055
- Oid subid ;
2055
+ Oid pubid ;
2056
2056
HeapTuple tup ;
2057
2057
Relation rel ;
2058
2058
ObjectAddress address ;
@@ -2068,11 +2068,11 @@ AlterPublicationOwner(const char *name, Oid newOwnerId)
2068
2068
errmsg ("publication \"%s\" does not exist" , name )));
2069
2069
2070
2070
pubform = (Form_pg_publication ) GETSTRUCT (tup );
2071
- subid = pubform -> oid ;
2071
+ pubid = pubform -> oid ;
2072
2072
2073
2073
AlterPublicationOwner_internal (rel , tup , newOwnerId );
2074
2074
2075
- ObjectAddressSet (address , PublicationRelationId , subid );
2075
+ ObjectAddressSet (address , PublicationRelationId , pubid );
2076
2076
2077
2077
heap_freetuple (tup );
2078
2078
@@ -2085,19 +2085,19 @@ AlterPublicationOwner(const char *name, Oid newOwnerId)
2085
2085
* Change publication owner -- by OID
2086
2086
*/
2087
2087
void
2088
- AlterPublicationOwner_oid (Oid subid , Oid newOwnerId )
2088
+ AlterPublicationOwner_oid (Oid pubid , Oid newOwnerId )
2089
2089
{
2090
2090
HeapTuple tup ;
2091
2091
Relation rel ;
2092
2092
2093
2093
rel = table_open (PublicationRelationId , RowExclusiveLock );
2094
2094
2095
- tup = SearchSysCacheCopy1 (PUBLICATIONOID , ObjectIdGetDatum (subid ));
2095
+ tup = SearchSysCacheCopy1 (PUBLICATIONOID , ObjectIdGetDatum (pubid ));
2096
2096
2097
2097
if (!HeapTupleIsValid (tup ))
2098
2098
ereport (ERROR ,
2099
2099
(errcode (ERRCODE_UNDEFINED_OBJECT ),
2100
- errmsg ("publication with OID %u does not exist" , subid )));
2100
+ errmsg ("publication with OID %u does not exist" , pubid )));
2101
2101
2102
2102
AlterPublicationOwner_internal (rel , tup , newOwnerId );
2103
2103
0 commit comments