mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Add SQL Standard WITH ORDINALITY support for UNNEST (and any other SRF)
Author: Andrew Gierth, David Fetter Reviewers: Dean Rasheed, Jeevan Chalke, Stephen Frost
This commit is contained in:
@ -8004,6 +8004,8 @@ get_from_clause_item(Node *jtnode, Query *query, deparse_context *context)
|
||||
case RTE_FUNCTION:
|
||||
/* Function RTE */
|
||||
get_rule_expr(rte->funcexpr, context, true);
|
||||
if (rte->funcordinality)
|
||||
appendStringInfoString(buf, " WITH ORDINALITY");
|
||||
break;
|
||||
case RTE_VALUES:
|
||||
/* Values list RTE */
|
||||
|
Reference in New Issue
Block a user