Re: Add pg_partition_root to get top-most parent of a partition tree

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Add pg_partition_root to get top-most parent of a partition tree
Дата
Msg-id 20181207014859.auk6hmgsdqwuqos5@alvherre.pgsql
обсуждение исходный текст
Ответ на Add pg_partition_root to get top-most parent of a partition tree  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Add pg_partition_root to get top-most parent of a partition tree  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
I think adding a pg_partition_root() call to as many pg_partition_tree
tests as you modified is overkill ... OTOH I'd have one test that
invokes pg_partition_tree(pg_partition_root(some-partition)) to verify
that starting from any point in the tree you get the whole tree.

I haven't actually tried to write a query that obtains a tree of
constraints using this, mind ...

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Add pg_partition_root to get top-most parent of a partition tree
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Add pg_partition_root to get top-most parent of a partition tree