pgsql: Remove useless lookup of root partitioned rel in ExecInitModifyT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove useless lookup of root partitioned rel in ExecInitModifyT
Date: 2018-01-17 19:44:20
Message-ID: E1ebtdE-0007w7-QL@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove useless lookup of root partitioned rel in ExecInitModifyTable().

node->partitioned_rels is only set in UPDATE/DELETE cases, but
ExecInitModifyTable only uses its "rel" variable in INSERT cases,
so the extra logic to find the root rel is just a waste of complexity
and cycles.

Etsuro Fujita, reviewed by Amit Langote

Discussion: https://postgr.es/m/93cf9816-2f7d-0f67-8ed2-4a4e497a6ab8@lab.ntt.co.jp

Branch
------
master

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

Modified Files
--------------
src/backend/executor/nodeModifyTable.c | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2018-01-17 22:09:56 pgsql: postgres_fdw: Avoid 'outer pathkeys do not match mergeclauses' e
Previous Message Simon Riggs 2018-01-17 11:42:23 pgsql: Ability to advance replication slots