Re: Resore PG-Data from Files after crash

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Resore PG-Data from Files after crash
Дата
Msg-id 20050826150637.GC4848@svana.org
обсуждение исходный текст
Ответ на Resore PG-Data from Files after crash  (tomtailor@freesurf.fr)
Список pgsql-general
On Thu, Aug 25, 2005 at 08:56:40AM -0700, tomtailor@freesurf.fr wrote:
> Hi!
>
> I've the following Problem and hope someone can help me. My PostgreSQL
> Database were running on a Debian Linux. Some day the OS crahsed and -
> here's the Problem - there is no dump file from Database. But I still
> have the files in base, global, pg_clog. So I did a fresh setup and
> copied the files in the pg data directory. But even I try to start via
> pg_ctl fails caus:

Looks like you're missing at least pg_xlog (which resetxlog might fix
for you) and PGVERSION (which is just a tag file).

I recommand running initdb on an empty directory and copy the stuff you
do have over the top and see if that works...

Keep a backup though...
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

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

Предыдущее
От: "Ben Trewern"
Дата:
Сообщение: Problems Reinstalling PostgreSQL on XP
Следующее
От: Howard Cole
Дата:
Сообщение: bytea or large objects?