Remove redundant if statement for schema name

(cherry picked from commit 840c879572)
pull/5084/head
Ahmet Gedemenli 2021-04-01 15:13:07 +03:00
parent fcb932268a
commit a216c6b62c
1 changed files with 0 additions and 8 deletions

View File

@ -4366,16 +4366,8 @@ FragmentAlias(RangeTblEntry *rangeTableEntry, RangeTableFragment *fragment)
Oid relationId = rangeTableEntry->relid;
char *relationName = get_rel_name(relationId);
/*
* If the table is not in the default namespace (public), we include it in
* the fragment alias.
*/
Oid schemaId = get_rel_namespace(relationId);
schemaName = get_namespace_name(schemaId);
if (strncmp(schemaName, "public", NAMEDATALEN) == 0)
{
schemaName = NULL;
}
aliasName = relationName;