Re: [GENERAL] delete a file everytime pg server starts/crashes

Поиск
Список
Период
Сортировка
От pinker
Тема Re: [GENERAL] delete a file everytime pg server starts/crashes
Дата
Msg-id 1507303650827-0.post@n3.nabble.com
обсуждение исходный текст
Ответ на [GENERAL] delete a file everytime pg server starts/crashes  (athinivas <athinivas@gmail.com>)
Ответы Re: [GENERAL] delete a file everytime pg server starts/crashes  (athinivas <athinivas@gmail.com>)
Список pgsql-general
Actually if the name of the file doesn't matter you could put it into
$PGDATA/pg_stat and name it global.stat. When postgres stops (clean or
because of failure), replaces the file with his own. So your content will be
erased.
I'm not sure it's completely safe but works in simple test.



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: Nico Williams
Дата:
Сообщение: Re: [GENERAL] Postgresql CDC tool recommendations ?
Следующее
От: Vladimir Nicolici
Дата:
Сообщение: Re: [GENERAL] Strange checkpoint behavior - checkpoints take a long time