Re: HELP: I removed file pg_log, how can I recover?

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "joel zimmerli" <baden32(at)yahoo(dot)fr>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: HELP: I removed file pg_log, how can I recover?
Date: 2007-11-12 16:47:53
Message-ID: dcc563d10711120847y1167647fod53ec60a4149f22@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Nov 9, 2007 5:27 PM, joel zimmerli <baden32(at)yahoo(dot)fr> wrote:
>
> I made a big mistake: I deleted the pg_log file and of course I've no backup
> of it. Now it seems I'm facing with big problem with my Postgres
> installation!

the pg_log directory on my machine just holds pg's log files. No biggie.

> Actually, I'm running Postgres on Cobalt Raq4 server and Postgres is used to
> administrate virtual website definition.

I'm guessing this is an older version of postgresql, and you actually
mean you deleted the pg_xlog directory.

If this is the case then your database is toast

> As this is the "only" file I've deleted, is there a way to recover the data
> of this file?

pg_resetxlog for your version of postgresql might allow you to get it
up and running well enough to dump it out. no promises. google to
find it. Search the archives on how it's used. And stop deleting
things if you aren't sure what they do (unless you make a backup
first, etc...)

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Vishal Arora 2007-11-13 07:33:10 Re: Security Query
Previous Message Carol Walter 2007-11-12 16:09:09 Re: max connections per user