pgsql: Fix handling of pg_stat_statements.stat temporary file

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pgsql: Fix handling of pg_stat_statements.stat temporary file
Дата
Msg-id E1SYZLK-000721-U8@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix handling of pg_stat_statements.stat temporary file

Write the file to a temporary name and then rename() it into the
permanent name, to ensure it can't end up half-written and corrupt
in case of a crash during shutdown.

Unlink the file after it has been read so it's removed from the data
directory and not included in base backups going to replication slaves.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/785b8d6ab312e5bee0846094fe06982c1d4c07f2

Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c |   22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Prevent synchronized scanning when systable_beginscan chooses a
Следующее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Make pg_recievexlog by default loop on connection failures