pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Postgresql crashing during pg_dump
Date: Wed, 22 Dec 2021 08:43:00 -0600
Message-ID: <2330a009-51ee-9552-b1c6-809b49d0efac@gmail.com> (raw)
In-Reply-To: <237409.1640184030@sss.pgh.pa.us>
References: <CAHJdQrnLoY2ZggPbBSNRoUQD_=spEcW4OuRKheF5=MJ+WP2Zig@mail.gmail.com>
	<237409.1640184030@sss.pgh.pa.us>

On 12/22/21 8:40 AM, Tom Lane wrote:
> Paulo Silva <paulojjs@gmail.com> writes:
>> I have a huge table with 141456059 records on a PostgreSQL 10.18 database.
>> When I try to do a pg_dump on that table, postgresql gives a segfault,
>> displaying this message:
>> 2021-12-22 14:08:03.437 UTC [15267] LOG:  server process (PID 25854) was
>> terminated by signal 11: Segmentation fault
> What this sounds like is corrupt data somewhere in that table.
>
> There's some advice about dealing with such cases here:
>
> https://wiki.postgresql.org/wiki/Corruption
>
> If this is extremely valuable data, you might prefer to hire somebody
> who specializes in data recovery, rather than trying to handle it
> yourself.  I'd still follow the wiki page's "first response" advice,
> ie take a physical backup ASAP.

COPY the table in PK ranges to narrow down the offending record?

-- 
Angular momentum makes the world go 'round.





view thread (3+ messages)

Message-ID: <2330a009-51ee-9552-b1c6-809b49d0efac@gmail.com>
Permalink:  ../2330a009-51ee-9552-b1c6-809b49d0efac@gmail.com/
Also on:    postgresql.org/message-id/2330a009-51ee-9552-b1c6-809b49d0efac@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 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-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Postgresql crashing during pg_dump
  In-Reply-To: <2330a009-51ee-9552-b1c6-809b49d0efac@gmail.com>
  References: <CAHJdQrnLoY2ZggPbBSNRoUQD_=spEcW4OuRKheF5=MJ+WP2Zig@mail.gmail.com> <237409.1640184030@sss.pgh.pa.us> <2330a009-51ee-9552-b1c6-809b49d0efac@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