Skip site navigation (1) Skip section navigation (2)

Re: Finding time in WAL logs

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Cc: Pascal Robert <probert(at)os(dot)ca>
Subject: Re: Finding time in WAL logs
Date: 2007-04-26 12:36:11
Message-ID: 200704260836.11566.xzilla@users.sourceforge.net (view raw or flat)
Thread:
Lists: pgsql-admin
On Wednesday 25 April 2007 11:28, Pascal Robert wrote:
> Hi,
>
> I'm writing our backup procedure for using WAL and PITR, but to be
> able to do a (mostly) perfect PITR, I need to find the time when a
> error (DELETE FROM, DROP TABLE, etc.) was made so that I can do a
> restore just before the error.
>
> Does PostgreSQL has something similar to "mysqlbinlog" so that I can
> look at the content of a WAL archive ?  I tried enabling
> "log_min_messages" at "info" level, but it doesn't log the date and
> time of a executed statement, so that's not a solution.
>

Look at the log_line_prefix option in the docs... 
http://www.postgresql.org/docs/8.2/interactive/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT

-- 
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL

In response to

pgsql-admin by date

Next:From: Sorin N. CiolofanDate: 2007-04-26 13:05:14
Subject: Re: [GENERAL] pg_buffercache view
Previous:From: Bill MoranDate: 2007-04-26 12:32:11
Subject: Re: [GENERAL] pg_buffercache view

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group