pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove es_result_relation_info from EState.
Date: Wed, 14 Oct 2020 08:59:18 +0000
Message-ID: <E1kSccw-0007zm-Og@gemulon.postgresql.org> (raw)

Remove es_result_relation_info from EState.

Maintaining 'es_result_relation_info' correctly at all times has become
cumbersome, especially with partitioning where each partition gets its
own result relation info. Having to set and reset it across arbitrary
operations has caused bugs in the past.

This changes all the places that used 'es_result_relation_info', to
receive the currently active ResultRelInfo via function parameters
instead.

Author: Amit Langote
Discussion: https://www.postgresql.org/message-id/CA%2BHiwqGEmiib8FLiHMhKB%2BCH5dRgHSLc5N5wnvc4kym%2BZYpQEQ%40ma...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a04daa97a4339c38e304cd6164d37da540d665a8

Modified Files
--------------
src/backend/commands/copy.c              |  19 +--
src/backend/commands/tablecmds.c         |   2 -
src/backend/executor/execIndexing.c      |   9 +-
src/backend/executor/execMain.c          |   4 -
src/backend/executor/execReplication.c   |  24 ++--
src/backend/executor/execUtils.c         |   1 -
src/backend/executor/nodeModifyTable.c   | 200 +++++++++++++------------------
src/backend/replication/logical/worker.c |  17 +--
src/include/executor/executor.h          |  19 ++-
src/include/executor/nodeModifyTable.h   |   4 +-
src/include/nodes/execnodes.h            |   1 -
src/test/regress/expected/insert.out     |   4 +-
src/test/regress/sql/insert.sql          |   4 +-
13 files changed, 131 insertions(+), 177 deletions(-)



Message-ID: <E1kSccw-0007zm-Og@gemulon.postgresql.org>
Permalink:  ../E1kSccw-0007zm-Og@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kSccw-0007zm-Og@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: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Remove es_result_relation_info from EState.
  In-Reply-To: <E1kSccw-0007zm-Og@gemulon.postgresql.org>
  References: <E1kSccw-0007zm-Og@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