pgsql: Add assertion in pgstat_write_statsfile() about processes allowe

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Add assertion in pgstat_write_statsfile() about processes allowe
Дата
Msg-id E1sS9WE-001LHC-Qh@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add assertion in pgstat_write_statsfile() about processes allowed

This routine can currently only be called from the postmaster in
single-user mode or the checkpointer, but there was no sanity check to
make sure that this was always the case.

This has proved to be useful when hacking the zone (at least to me), to
make sure that the write of the pgstats file happens at shutdown, as
wanted by design, in the correct process context.

Discussion: https://postgr.es/m/ZnEiqAITL-VgZDoY@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/734c057a8935fca10ff67173c8b969ef799ea7d2

Modified Files
--------------
src/backend/utils/activity/pgstat.c | 3 +++
1 file changed, 3 insertions(+)


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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: pgsql: Fix a typo in logicalrep_write_typ().
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Fix ALTER TABLE DETACH for inconsistent indexes