Re: BUG #15245: pg_stat_all_tables does not include partition mastertables

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #15245: pg_stat_all_tables does not include partition mastertables
Дата
Msg-id 20180618060530.GH3721@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #15245: pg_stat_all_tables does not include partition master tables  (David Rowley <david.rowley@2ndquadrant.com>)
Ответы Re: BUG #15245: pg_stat_all_tables does not include partition mastertables  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Список pgsql-bugs
On Mon, Jun 18, 2018 at 05:49:47PM +1200, David Rowley wrote:
> FWIW there was a similar discussion of whether
> pg_relation_size('<partitioned table>') should report the sizes of all
> its partitions in [1].  Most people seemed to vote to leave it
> returning 0.
>
> Some of the same reasoning might apply to this case.
>
> [1] https://www.postgresql.org/message-id/495cec7e-f8d9-7e13-4807-90dbf4eec4ea@lab.ntt.co.jp

Having a wrapper on top of find_all_inheritors() which grabs all the
relations in a partition tree would be more helpful for all those cases
in my opinion, and this could just aggregate with pg_relation_size.
That's also discussed at the bottom of the thread David is mentioning.
It would be nice to get that into v12.
--
Michael

Вложения

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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: BUG #15245: pg_stat_all_tables does not include partition master tables
Следующее
От: Amit Langote
Дата:
Сообщение: Re: BUG #15245: pg_stat_all_tables does not include partition mastertables