]> granicus.if.org Git - postgresql/commit
Make pg_partition_tree return no rows on unsupported and undefined objects
authorMichael Paquier <michael@paquier.xyz>
Fri, 1 Mar 2019 00:07:07 +0000 (09:07 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 1 Mar 2019 00:07:07 +0000 (09:07 +0900)
commit0f3cdf873e7d81fbf61965e13685595c8a23c322
tree105293a04b1dd840b69118c69ff216300c1f62f4
parent253655116bb437d649203a5a87105e885e4b08f9
Make pg_partition_tree return no rows on unsupported and undefined objects

The function was tweaked so as it returned one row full of NULLs when
working on an unsupported relkind or an undefined object as of cc53123,
and after discussion with Amit and Álvaro it looks more natural to make
it return no rows.

Author: Michael Paquier
Reviewed-by: Álvaro Herrera, Amit Langote
Discussion: https://postgr.es/m/20190227184808.GA17357@alvherre.pgsql
src/backend/utils/adt/partitionfuncs.c
src/test/regress/expected/partition_info.out