Add index_get_partition convenience function

Enterprise / PostgreSQL - Alvaro Herrera [alvh.no-ip.org] - 20 March 2019 21:18 EDT

This new function simplifies some existing coding, as well as supports future patches.

Discussion: https://postgr.es/m/201901222145.t6wws6t6vrcu@alvherre.pgsql

a6da004715 Add index_get_partition convenience function
src/backend/catalog/partition.c | 36 ++++++++++++++++++++++++++++++++++++
src/backend/commands/tablecmds.c | 40 +++++++++++-----------------------------
src/include/catalog/partition.h | 1 +
3 files changed, 48 insertions(+), 29 deletions(-)

Upstream: git.postgresql.org


  • Share