Re: deleted logs when I shouldn't have...

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: deleted logs when I shouldn't have...
Дата
Msg-id 20011106180703.B20795@svana.org
обсуждение исходный текст
Ответ на deleted logs when I shouldn't have...  (Stephanie Brail <zhaanlives@yahoo.com>)
Список pgsql-general
On Mon, Nov 05, 2001 at 08:57:22PM -0800, Stephanie Brail wrote:
> I did something really stupid. Our server was out of
> disk space and I deleted the files in the pg_xlog
> directory (or whatever the heck it's called). Now I
> can't start Postgres. Help!

That's bad. Really bad. In recent releases there is a program called
resetxlog or something which will rebuild it for you, but only back as far
as the last vacuum IIRC :(. Do you have backups?

> Also, how to deal with these logs, that grow and grow
> and take up space?

They grow a little bit for each transaction you do. In older releases the
only fix was complete dump and restore of database. Apparently recent
releases handle this much better.

HTH,
--
Martijn van Oosterhout <kleptog@svana.org>
http://svana.org/kleptog/
> Magnetism, electricity and motion are like a three-for-two special offer:
> if you have two of them, the third one comes free.

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

Предыдущее
От: Keary Suska
Дата:
Сообщение: Re: Use of Serial Datatype and Sequence Issue
Следующее
От: Jean-Michel POURE
Дата:
Сообщение: Re: Referring a table in another database