Re: [GENERAL] delete a file everytime pg server starts/crashes
В списке pgsql-general по дате отправления:
| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера