Updates AlternativeSubPlan comment in ruleutils_14.c

Relevant PG commit:
41efb8340877e8ffd0023bb6b2ef22ffd1ca014d
pull/5209/head
Halil Ozan Akgul 2021-08-16 12:46:22 +03:00 committed by Sait Talha Nisanci
parent e642f6c97f
commit beb49f0d53
1 changed files with 6 additions and 1 deletions

View File

@ -5143,7 +5143,12 @@ get_rule_expr(Node *node, deparse_context *context,
AlternativeSubPlan *asplan = (AlternativeSubPlan *) node;
ListCell *lc;
/* As above, this can only happen during EXPLAIN */
/*
* This case cannot be reached in normal usage, since no
* AlternativeSubPlan can appear either in parsetrees or
* finished plan trees. We keep it just in case somebody
* wants to use this code to print planner data structures.
*/
appendStringInfoString(buf, "(alternatives: ");
foreach(lc, asplan->subplans)
{