pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: joel zimmerli <baden32@yahoo.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: HELP: I removed file pg_log, how can I recover?
Date: Mon, 12 Nov 2007 10:47:53 -0600
Message-ID: <dcc563d10711120847y1167647fod53ec60a4149f22@mail.gmail.com> (raw)
In-Reply-To: <827339.37998.qm@web26107.mail.ukl.yahoo.com>
References: <827339.37998.qm@web26107.mail.ukl.yahoo.com>

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...)



view thread (2+ messages)

Message-ID: <dcc563d10711120847y1167647fod53ec60a4149f22@mail.gmail.com>
Permalink:  ../dcc563d10711120847y1167647fod53ec60a4149f22@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10711120847y1167647fod53ec60a4149f22@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott.marlowe@gmail.com, baden32@yahoo.fr
  Subject: Re: HELP: I removed file pg_log, how can I recover?
  In-Reply-To: <dcc563d10711120847y1167647fod53ec60a4149f22@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox