Re: Per backend relation statistics tracking

Поиск
Список
Период
Сортировка
Искать
От
Bertrand Drouvot
Тема
Re: Per backend relation statistics tracking
Дата
Msg-id
aK8OuVPmmDTc9CFX@ip-10-97-1-34.eu-west-3.compute.internal
Ответ на
Список
Дерево обсуждения
Per backend relation statistics tracking Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Per backend relation statistics tracking Andres Freund <andres@anarazel.de>
Re: Per backend relation statistics tracking Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Per backend relation statistics tracking Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Per backend relation statistics tracking Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Per backend relation statistics tracking Andres Freund <andres@anarazel.de>
Re: Per backend relation statistics tracking Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Per backend relation statistics tracking Sami Imseih <samimseih@gmail.com>
Re: Per backend relation statistics tracking Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Per backend relation statistics tracking Sami Imseih <samimseih@gmail.com>
Re: Per backend relation statistics tracking Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Per backend relation statistics tracking Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Per backend relation statistics tracking Michael Paquier <michael@paquier.xyz>
Re: Per backend relation statistics tracking Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Per backend relation statistics tracking Sami Imseih <samimseih@gmail.com>
Re: Per backend relation statistics tracking Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Hi,

On Tue, Aug 26, 2025 at 04:55:09PM -0500, Sami Imseih wrote:
> I worry that a single view will grow very wide, and we will have to eventually
> split it. So we may as well start thinking about having multiple views
> in advance.

I gave it more thoughts and I now think that multiple views is better. We
could start with pg_stat_backend_relations here.

> > Having said that, we could imagine adding
> > pg_stat_get_backend_wal() output to pg_stat_backend too.
> 
> For this one, I think we should just overload the function
> pg_stat_get_backend_wal,
> and if a PID is not passed in, return all of them; and  just create a
> new view called
> pg_stat_backend_wal that returns all the PIDs. sort of like how we have
> pg_stat_get_activity and pg_stat_activity, etc.

Yes, and it's also how the new view is designed in this patch. I think I'll
add a new pg_stat_backend_wal view if the current proposal goes in (for 
consistency).

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com


В списке pgsql-hackers по дате отправления
От: Dean Rasheed
Дата:
От: Robert Haas
Дата:
FAQ