mirror of https://github.com/citusdata/citus.git
Address reviews
parent
7f7fd482fc
commit
6d4f70363e
|
@ -689,8 +689,8 @@ GenerateBackupNameForSequenceCollision(const ObjectAddress *address)
|
||||||
strncpy_s(newName + baseLength, NAMEDATALEN - baseLength, suffix,
|
strncpy_s(newName + baseLength, NAMEDATALEN - baseLength, suffix,
|
||||||
suffixLength);
|
suffixLength);
|
||||||
|
|
||||||
Oid typeOid = get_relname_relid(newName, schemaId);
|
Oid newRelationId = get_relname_relid(newName, schemaId);
|
||||||
if (typeOid == InvalidOid)
|
if (newRelationId == InvalidOid)
|
||||||
{
|
{
|
||||||
return newName;
|
return newName;
|
||||||
}
|
}
|
||||||
|
|
|
@ -706,7 +706,6 @@ SupportedDependencyByCitus(const ObjectAddress *address)
|
||||||
/*
|
/*
|
||||||
* IsTableOwnedByExtension returns whether the table with the given relation ID is
|
* IsTableOwnedByExtension returns whether the table with the given relation ID is
|
||||||
* owned by an extension.
|
* owned by an extension.
|
||||||
* TODO: Check what if the extension is not distributed?
|
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
IsTableOwnedByExtension(Oid relationId)
|
IsTableOwnedByExtension(Oid relationId)
|
||||||
|
|
Loading…
Reference in New Issue