pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Shellam (Mailing Lists) <andy.shellam-lists@mailnetwork.co.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Recovering a deleted database problem
Date: Fri, 05 Jan 2007 18:44:58 +0000
Message-ID: <459E9CAA.5090800@mailnetwork.co.uk> (raw)
In-Reply-To: <16101.1168012190@sss.pgh.pa.us>
References: <459E32DC.3030402@mailnetwork.co.uk>
	<15671.1168009739@sss.pgh.pa.us>
	<459E6E24.2090505@mailnetwork.co.uk>
	<16101.1168012190@sss.pgh.pa.us>


> Well, I'd be a little worried about whether the base backup was
> self-consistent, but if it was taken at a time where the DB was idle
> then you can probably get away with this.
>   

It gets backed up at 2am in the morning and AFAIK there'd be very few 
(if any) transactions going through until about 5am, so it should be OK.
> AFAIK the only operations that have non-rollbackable side effects are
> CREATE/DROP DATABASE and CREATE/DROP TABLESPACE.  For any of these,
> you'd end up with inconsistent state if you try to stop replay just
> before the commit record.
>   

OK thanks for that Tom, after glancing through the online documentation, 
I've enabled logging of checkpoints etc. by setting "log_min_messages" 
to "log" - is this enough to log the times that transactions are 
committed, so I can find this info should I need it again in the future?

Thanks,

-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"





view thread (5+ messages)

Message-ID: <459E9CAA.5090800@mailnetwork.co.uk>
Permalink:  ../459E9CAA.5090800@mailnetwork.co.uk/
Also on:    postgresql.org/message-id/459E9CAA.5090800@mailnetwork.co.uk

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andy.shellam-lists@mailnetwork.co.uk, tgl@sss.pgh.pa.us
  Subject: Re: Recovering a deleted database problem
  In-Reply-To: <459E9CAA.5090800@mailnetwork.co.uk>
  References: <459E32DC.3030402@mailnetwork.co.uk> <15671.1168009739@sss.pgh.pa.us> <459E6E24.2090505@mailnetwork.co.uk> <16101.1168012190@sss.pgh.pa.us> <459E9CAA.5090800@mailnetwork.co.uk>

* 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