Handle unnamed groups in set_rtable_names by using the group's name

m3hm3t/pg18_dev_relation_oid_0
Mehmet Yilmaz 2025-06-17 13:05:58 +00:00
parent 1ea5c8c20a
commit cb2f4c5aaf
1 changed files with 5 additions and 0 deletions

View File

@ -795,6 +795,11 @@ set_rtable_names(deparse_namespace *dpns, List *parent_namespaces,
/* Unnamed join has no refname */ /* Unnamed join has no refname */
refname = NULL; refname = NULL;
} }
else if (rte->rtekind == RTE_GROUP)
{
/* Use the name of the group */
refname = NULL;
}
else else
{ {
/* Otherwise use whatever the parser assigned */ /* Otherwise use whatever the parser assigned */