Unix Technical Forum

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

This is a discussion on HELP: I removed file pg_log, how can I recover? within the pgsql Admins forums, part of the PostgreSQL category; --> I made a big mistake: I deleted the pg_log file and of course I've no backup of it. Now ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 08:17 AM
joel zimmerli
 
Posts: n/a
Default HELP: I removed file pg_log, how can I recover?

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!

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

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

Thank you in advnace for your help.

Joel




__________________________________________________ ___________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 08:17 AM
Scott Marlowe
 
Posts: n/a
Default Re: HELP: I removed file pg_log, how can I recover?

On Nov 9, 2007 5:27 PM, joel zimmerli <baden32@yahoo.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...)

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:32 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com