Re: Add new option 'all' to pg_stat_reset_shared()

Поиск
Список
Период
Сортировка
Искать
От
Bharath Rupireddy
Тема
Re: Add new option 'all' to pg_stat_reset_shared()
Дата
Msg-id
CALj2ACW4Fqc_m+OaavrOMEivZ5aBa24pVKvoXRTmuFECsNBfAg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Add new option 'all' to pg_stat_reset_shared() Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Add new option 'all' to pg_stat_reset_shared() Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Add new option 'all' to pg_stat_reset_shared() Andres Freund <andres@anarazel.de>
Re: Add new option 'all' to pg_stat_reset_shared() Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Add new option 'all' to pg_stat_reset_shared() Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Add new option 'all' to pg_stat_reset_shared() Andres Freund <andres@anarazel.de>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() Andres Freund <andres@anarazel.de>
Re: Add new option 'all' to pg_stat_reset_shared() Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: Add new option 'all' to pg_stat_reset_shared() Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() Andres Freund <andres@anarazel.de>
Re: Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() Andres Freund <andres@anarazel.de>
Re: Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() torikoshia <torikoshia@oss.nttdata.com>
Re: Add new option 'all' to pg_stat_reset_shared() Michael Paquier <michael@paquier.xyz>
Re: Add new option 'all' to pg_stat_reset_shared() Matthias van de Meent <boekewurm+postgres@gmail.com>
On Wed, Nov 8, 2023 at 9:43 AM Andres Freund  wrote:
>
> > 2.
> > +{ oid => '8000',
> > +  descr => 'statistics: reset collected statistics shared across the cluster',
> > +  proname => 'pg_stat_reset_shared', provolatile => 'v', prorettype => 'void',
> > +  proargtypes => '', prosrc => 'pg_stat_reset_shared_all' },
> >
> > Why a new function consuming the oid? Why can't we just do the trick
> > of proisstrict => 'f' and if (PG_ARGISNULL(0)) { reset all stats} else
> > {reset specified stats kind} like the pg_stat_reset_slru()?
>
> It's not like oids are a precious resource. It's a more confusing API to have
> to have to specify a NULL as an argument than not having to do so. If we
> really want to avoid a separate oid, a more sensible path would be to add a
> default argument to pg_stat_reset_slru() (by doing a CREATE OR REPLACE in
> system_functions.sql).

+1. Attached the patch.

--
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Amit Kapila
Дата:
FAQ