1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

pg_partition_ancestors

Adds another introspection feature for partitioning, necessary for
further psql patches.

Reviewed-by: Michaël Paquier
Discussion: https://postgr.es/m/20190226222757.GA31622@alvherre.pgsql
This commit is contained in:
Alvaro Herrera
2019-03-04 16:14:29 -03:00
parent d12fbe2f8e
commit b96f6b1948
6 changed files with 144 additions and 1 deletions

View File

@ -20274,6 +20274,17 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
their partitions, and so on.
</entry>
</row>
<row>
<entry>
<indexterm><primary>pg_partition_ancestors</primary></indexterm>
<literal><function>pg_partition_ancestors(<type>regclass</type>)</function></literal>
</entry>
<entry><type>setof regclass</type></entry>
<entry>
List the ancestor relations of the given partition,
including the partition itself.
</entry>
</row>
<row>
<entry>
<indexterm><primary>pg_partition_root</primary></indexterm>