Re: Fix pg_stat_reset_single_table_counters function

Поиск
Список
Период
Сортировка
От Masahiro Ikeda
Тема Re: Fix pg_stat_reset_single_table_counters function
Дата
Msg-id 93d14a670cf090c08994f1f4958efa25@oss.nttdata.com
обсуждение исходный текст
Ответ на Re: Fix pg_stat_reset_single_table_counters function  (Masahiko Sawada <sawada.mshk@gmail.com>)
Ответы Re: Fix pg_stat_reset_single_table_counters function  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-hackers
On 2023-08-15 11:48, Masahiko Sawada wrote:
> On Mon, Aug 14, 2023 at 5:12 PM Masahiro Ikeda 
> <ikedamsh@oss.nttdata.com> wrote:
>> I changed the table to check the stats from pg_database to
>> pg_shdescription
>> because the stats can update via the SQL interface COMMENT command.
> 
> It seems to work well.
> 
> +COMMENT ON DATABASE :current_database IS 'This is a test comment';
> -- insert or update in 'pg_shdescription'
> 
> I think the current_database should be quoted (see other examples
> where using current_database(), e.g. collate.linux.utf8.sql). Also it
> would be better to reset the comment after the test.

Thanks! I fixed the issues in the v4 patch.

Regards,
-- 
Masahiro Ikeda
NTT DATA CORPORATION
Вложения

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

Предыдущее
От: "Zhijie Hou (Fujitsu)"
Дата:
Сообщение: RE: [PoC] pg_upgrade: allow to upgrade publisher node
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Extract numeric filed in JSONB more effectively