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: Use key and partdesc from PartitionDispatch where possible.
Date: Fri, 27 Jul 2018 13:44:51 +0000
Message-ID: <E1fj335-0001Nb-1M@gemulon.postgresql.org> (raw)

Use key and partdesc from PartitionDispatch where possible.

Instead of repeatedly fishing the data out of the relcache entry,
let's use the version that we cached in the PartitionDispatch.  We
could alternatively rip out the PartitionDispatch fields altogether,
but it doesn't make much sense to have them and not use them; before
this patch, partdesc was set but altogether unused.  Amit Langote and
I both thought using them was a litle better than removing them, so
this patch takes that approach.

Discussion: http://postgr.es/m/CA+TgmobFnxcaW-Co-XO8=yhJ5pJXoNkCj6Z7jm9Mwj9FGv-D7w@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/executor/execPartition.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)



Message-ID: <E1fj335-0001Nb-1M@gemulon.postgresql.org>
Permalink:  ../E1fj335-0001Nb-1M@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fj335-0001Nb-1M@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: Use key and partdesc from PartitionDispatch where possible.
  In-Reply-To: <E1fj335-0001Nb-1M@gemulon.postgresql.org>
  References: <E1fj335-0001Nb-1M@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