Refactor get_partition_for_tuple a bit.
authorRobert Haas <rhaas@postgresql.org>
Fri, 8 Sep 2017 01:07:47 +0000 (21:07 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 8 Sep 2017 01:13:42 +0000 (21:13 -0400)
commitf0a0c17c1b126882a37ec6bf42ab45a963794c3e
tree39de114e7b96d52b38801696d8856ebc05921857
parent3ca930fc39ccf987c1c22fd04a1e7463b5dd0dfd
Refactor get_partition_for_tuple a bit.

Pending patches for both default partitioning and hash partitioning
find the current coding pattern to be inconvenient.  Change it so that
we switch on the partitioning method first and then do whatever is
needed.

Amul Sul, reviewed by Jeevan Ladhe, with a few adjustments by me.

Discussion: http://postgr.es/m/CAAJ_b97mTb=dG2pv6+1ougxEVZFVnZJajW+0QHj46mEE7WsoOQ@mail.gmail.com
Discussion: http://postgr.es/m/CAOgcT0M37CAztEinpvjJc18EdHfm23fw0EG9-36Ya=+rEFUqaQ@mail.gmail.com
src/backend/catalog/partition.c