]> granicus.if.org Git - postgresql/commit
Add index_get_partition convenience function
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 20 Mar 2019 21:18:50 +0000 (18:18 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 20 Mar 2019 21:18:50 +0000 (18:18 -0300)
commita6da0047158b8a227f883aeed19eb7fcfbef11fb
treeaf53ae002df18805e9c21adc3e5d0015be0db0bd
parent3d0dcc5c7fb9cfc349d1b2d476a1c0c5d64522bd
Add index_get_partition convenience function

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

Discussion: https://postgr.es/m/201901222145.t6wws6t6vrcu@alvherre.pgsql
Reviewed-by: Amit Langote, Jesper Pedersen
src/backend/catalog/partition.c
src/backend/commands/tablecmds.c
src/include/catalog/partition.h