mirror of https://github.com/citusdata/citus.git
parent
fcb932268a
commit
a216c6b62c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue