pgsql: Avoid some code duplication in map_partition_varattnos().

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid some code duplication in map_partition_varattnos().
Date: 2017-01-19 19:15:09
Message-ID: E1cUIAv-0007Fq-IS@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid some code duplication in map_partition_varattnos().

Code to map attribute numbers in map_partition_varattnos() duplicates
what convert_tuples_by_name_map() does. Avoid that.

Amit Langote, per a report from Álvaro Herrera.

Discussion: http://postgr.es/m/9ce97382-54c8-deb3-9ee9-a2ec271d866b%40lab.ntt.co.jp

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/cc144155f7cdd51e19984f82da6625dc75de9fda

Modified Files
--------------
src/backend/catalog/partition.c | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-01-19 19:18:11 pgsql: Teach partitioning tests not to use DROP TABLE ... CASCADE.
Previous Message Robert Haas 2017-01-19 19:01:16 pgsql: Fix some problems in check_new_partition_bound().