Add comment to clarify unexpected RECORD type handling in get_name_for_var_field

m3hm3t/pg18_ruleutils_experi_1
Mehmet Yilmaz 2025-09-14 12:39:51 +00:00
parent c017792ce0
commit dde4c47d3f
1 changed files with 7 additions and 0 deletions

View File

@ -4880,6 +4880,13 @@ get_name_for_var_field(Var *var, int fieldno,
case RTE_VALUES:
case RTE_NAMEDTUPLESTORE:
case RTE_RESULT:
/*
* This case should not occur: a column of a table or values list
* shouldn't have type RECORD. Fall through and fail (most
* likely) at the bottom.
*/
break;
case RTE_SUBQUERY:
/* Subselect-in-FROM: examine sub-select's output expr */
{