pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't pass the grouping target around unnecessarily.
Date: Tue, 20 Mar 2018 15:38:21 +0000
Message-ID: <E1eyJLB-0005j2-RP@gemulon.postgresql.org> (raw)

Don't pass the grouping target around unnecessarily.

Since commit 4f15e5d09de276fb77326be5567dd9796008ca2e made grouped_rel
set reltarget, a variety of other functions can just get it from
grouped_rel instead of having to pass it around explicitly.  Simplify
accordingly.

Patch by me, reviewed by Ashutosh Bapat.

Discussion: http://postgr.es/m/CA+TgmoZ+ZJTVad-=vEq393N99KTooxv9k7M+z73qnTAqkb49BQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/94150513ec12c13eb7c98430fc34f477896d38c9

Modified Files
--------------
src/backend/optimizer/plan/planner.c  | 41 +++++++++++++----------------------
src/backend/optimizer/util/pathnode.c |  4 ++--
src/include/optimizer/pathnode.h      |  2 --
3 files changed, 17 insertions(+), 30 deletions(-)



Message-ID: <E1eyJLB-0005j2-RP@gemulon.postgresql.org>
Permalink:  ../E1eyJLB-0005j2-RP@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eyJLB-0005j2-RP@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Don't pass the grouping target around unnecessarily.
  In-Reply-To: <E1eyJLB-0005j2-RP@gemulon.postgresql.org>
  References: <E1eyJLB-0005j2-RP@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox