| От | Tom Lane |
|---|---|
| Тема | Re: Help to restore lost database |
| Дата | |
| Msg-id | 1833.1025098943@sss.pgh.pa.us обсуждение |
| Ответ на | Help to restore lost database ("brunormr" <brunormr@bol.com.br>) |
| Список | pgsql-admin |
"brunormr" <brunormr@bol.com.br> writes:
> I erased the files (000000000000 and
> 000000000001) that were im the pg_xlog
> folder into the data directory of
> pgsql.
A piece of advice: if you don't know what a file is for, don't remove
it.
> I have all the other files of the
> database and I want to restore the
> data, but I hadn't made a backup (a
> dump). Is there a way to restore the
> files on the pg_xlog with the other
> files or to save the data from the
> database?
If the postmaster was shut down at the time, then running
contrib/pg_resetxlog should get you out of trouble.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера