diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-01-17 14:44:15 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-01-17 14:44:15 -0500 |
commit | dca48d145e0e757f0549430ec48687d12c6b6751 (patch) | |
tree | 49b80c744d5baf1cdcff1d4c96dfa94297a1aa77 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 9c7d06d60680c7f00d931233873dee81fdb311c6 (diff) | |
download | postgresql-dca48d145e0e757f0549430ec48687d12c6b6751.tar.gz postgresql-dca48d145e0e757f0549430ec48687d12c6b6751.zip |
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
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions