Remove redundant if statement for schema name

pull/4866/head
Ahmet Gedemenli 2021-04-01 15:13:07 +03:00
parent 063e673038
commit 840c879572
1 changed files with 0 additions and 8 deletions

View File

@ -4361,16 +4361,8 @@ FragmentAlias(RangeTblEntry *rangeTableEntry, RangeTableFragment *fragment)
Oid relationId = rangeTableEntry->relid; Oid relationId = rangeTableEntry->relid;
char *relationName = get_rel_name(relationId); 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); Oid schemaId = get_rel_namespace(relationId);
schemaName = get_namespace_name(schemaId); schemaName = get_namespace_name(schemaId);
if (strncmp(schemaName, "public", NAMEDATALEN) == 0)
{
schemaName = NULL;
}
aliasName = relationName; aliasName = relationName;