pgsql: Save PathTargets for distinct/ordered relations in root->upper_t

From: Etsuro Fujita <efujita(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Save PathTargets for distinct/ordered relations in root->upper_t
Date: 2019-02-18 07:16:30
Message-ID: E1gvdAE-0002cg-Bu@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Save PathTargets for distinct/ordered relations in root->upper_targets[].

For the convenience of extensions, we previously only saved PathTargets
for grouped, window, and final relations in root->upper_targets[] in
grouping_planner(). To improve the convenience, save PathTargets for
distinct and ordered relations as well.

Author: Antonin Houska, with an additional change by me
Discussion: https://postgr.es/m/10994.1549559088@localhost

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3fdc374b5d24b08119a91555ca2fae427af0b085

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2019-02-18 09:28:37 pgsql: Add bytea datatype to ECPG.
Previous Message Michael Paquier 2019-02-18 05:24:38 pgsql: Fix some issues with TAP tests of pg_basebackup