summaryrefslogtreecommitdiff
path: root/src/backend/parser/analyze.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2024-05-21 12:42:27 -0400
committerRobert Haas <rhaas@postgresql.org>2024-05-21 12:44:51 -0400
commit12933dc6048902ba891f9572cab96981f50ef669 (patch)
tree3e14dabda4e36866611d8e2627b3925b011c00e3 /src/backend/parser/analyze.c
parent3bd7b2f465deb48c0d37ed6a41bd864771f44390 (diff)
Re-allow planner to use Merge Append to efficiently implement UNION.
This reverts commit 7204f35919b7e021e8d1bc9f2d76fd6bfcdd2070, thus restoring 66c0185a3 (Allow planner to use Merge Append to efficiently implement UNION) as well as the follow-on commits d5d2205c8, 3b1a7eb28, 7487044d6. Per further discussion on pgsql-release, we wish to ship beta1 with this feature, and patch the bug that was found just before wrap, rather than shipping beta1 with the feature reverted.
Diffstat (limited to 'src/backend/parser/analyze.c')
-rw-r--r--src/backend/parser/analyze.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c
index 40ea19e6f10..28fed9d87f6 100644
--- a/src/backend/parser/analyze.c
+++ b/src/backend/parser/analyze.c
@@ -1890,7 +1890,8 @@ transformSetOperationStmt(ParseState *pstate, SelectStmt *stmt)
* For now, we don't support resjunk sort clauses on the output of a
* setOperation tree --- you can only use the SQL92-spec options of
* selecting an output column by name or number. Enforce by checking that
- * transformSortClause doesn't add any items to tlist.
+ * transformSortClause doesn't add any items to tlist. Note, if changing
+ * this, add_setop_child_rel_equivalences() will need to be updated.
*/
tllen = list_length(qry->targetList);