Re: Postgres fails to start

From: Haiming Zhang <Haiming(dot)Zhang(at)redflex(dot)com(dot)au>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres fails to start
Date: 2015-04-07 07:05:50
Message-ID: 1924647527694abc90f23e8826b8c309@RTS-EXCHANGE01.traffic.redflex.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Michael,

Thank you again. It seems hard to recover, I will go the hard way (lost data). Learned a lesson.

Regards,
Haiming

-----Original Message-----
From: Michael Paquier [mailto:michael(dot)paquier(at)gmail(dot)com]
Sent: Tuesday, 7 April 2015 1:04 PM
To: Haiming Zhang
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Postgres fails to start

On Tue, Apr 7, 2015 at 10:46 AM, Haiming Zhang <Haiming(dot)Zhang(at)redflex(dot)com(dot)au> wrote:
> Thank you for replying. The file was there, is that ok to remove the corrupted file to recover postgres? "base/2008723533/2107262657.2"

Be careful here, I would recommend taking a file-level snapshot before going on and do perhaps-stupid things. As that's a btree right split, perhaps you could recover your data by ignoring this index...

> Unfortunately, I only have a backup on February. Is there a way I can recover it without losing the recent data?

What is lost is lost. A good backup strategy is essential.
--
Michael

________________________________

If you are not an authorised recipient of this e-mail, please contact me at Redflex immediately by return phone call or by email. In this case, you should not read, print, retransmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain privileged information and/or copyright material of Redflex or third parties. You should only retransmit, distribute or commercialise the material if you are authorised to do so. This notice should not be removed.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gerardo Herzig 2015-04-07 16:59:46 Re: check data for datatype
Previous Message Michael Paquier 2015-04-07 03:04:29 Re: Postgres fails to start