pgsql: Avoid listing the same ResultRelInfo in more than one EState lis

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid listing the same ResultRelInfo in more than one EState lis
Date: 2018-02-08 19:30:59
Message-ID: E1ejruN-0003kA-Ro@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid listing the same ResultRelInfo in more than one EState list.

Doing so causes EXPLAIN ANALYZE to show trigger statistics multiple
times. Commit 2f178441044be430f6b4d626e4dae68a9a6f6cec seems to
be to blame for this.

Amit Langote, revieed by Amit Khandekar, Etsuro Fujita, and me.

Branch
------
master

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

Modified Files
--------------
src/backend/commands/explain.c | 11 +++++++----
src/backend/executor/execMain.c | 7 +++++--
src/backend/executor/execPartition.c | 12 +++++++++---
src/backend/executor/execUtils.c | 2 +-
src/include/nodes/execnodes.h | 7 +++++--
5 files changed, 27 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2018-02-08 19:39:28 pgsql: Fix incorrect method name in comment.
Previous Message Robert Haas 2018-02-08 17:57:31 pgsql: Fix possible infinite loop with Parallel Append.