mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +03:00
Re-allow planner to use Merge Append to efficiently implement UNION.
This reverts commit7204f35919
, thus restoring66c0185a3
(Allow planner to use Merge Append to efficiently implement UNION) as well as the follow-on commitsd5d2205c8
,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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user