pgsql: Tighten up some code in RelationBuildPartitionDesc.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Tighten up some code in RelationBuildPartitionDesc.
Date: 2017-09-01 19:19:20
Message-ID: E1dnrTM-0007iC-OE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tighten up some code in RelationBuildPartitionDesc.

This probably doesn't save anything meaningful in terms of
performance, but making the code simpler is a good idea anyway.

Code by Beena Emerson, extracted from a larger patch by Jeevan
Ladhe, slightly adjusted by me.

Discussion: http://postgr.es/m/CAOgcT0ONgwajdtkoq+AuYkdTPY9cLWWLjxt_k4SXue3eieAr+g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0cb8b7531db063bce7def2ef24f616285f1f4b04

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

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-09-01 19:42:10 pgsql: Add memory info to getrusage output
Previous Message Tom Lane 2017-09-01 19:14:55 pgsql: Make [U]INT64CONST safe for use in #if conditions.