Re: [PATCH] pg_statio_all_tables: several rows per table due to invalid TOAST index

Поиск
Список
Период
Сортировка
От Andrei Zubkov
Тема Re: [PATCH] pg_statio_all_tables: several rows per table due to invalid TOAST index
Дата
Msg-id f63c476208b74f980b8ede898c7178b455f5d593.camel@moonset.ru
обсуждение исходный текст
Ответ на Re: [PATCH] pg_statio_all_tables: several rows per table due to invalid TOAST index  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: [PATCH] pg_statio_all_tables: several rows per table due to invalid TOAST index  (Andrei Zubkov <zubkov@moonset.ru>)
Re: [PATCH] pg_statio_all_tables: several rows per table due to invalid TOAST index  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi, Michael

Thank you for your attention!

On Tue, 2021-11-30 at 17:29 +0900, Michael Paquier wrote:
> Hmm.  Why should we care about invalid indexes at all, including
> pg_statio_all_indexes?
> 

I think we should care about them at least because they are exists and
can consume resources. For example, invalid index is to be updated by
DML operations.
Of course we can exclude such indexes from a view using isvalid,
isready, islive fields. But in such case we should mention this in the
docs, and more important is that the new such states of indexes can
appear in the future causing change in a view definition. Counting all
indexes regardless of states seems more reasonable to me.

-- 
Andrei Zubkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company





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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH] pg_statio_all_tables: several rows per table due to invalid TOAST index
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Skipping logical replication transactions on subscriber side