pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paulo Silva <paulojjs@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Postgresql crashing during pg_dump
Date: Wed, 22 Dec 2021 09:40:30 -0500
Message-ID: <237409.1640184030@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHJdQrnLoY2ZggPbBSNRoUQD_=spEcW4OuRKheF5=MJ+WP2Zig@mail.gmail.com>
References: <CAHJdQrnLoY2ZggPbBSNRoUQD_=spEcW4OuRKheF5=MJ+WP2Zig@mail.gmail.com>

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.

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <237409.1640184030@sss.pgh.pa.us>
Permalink:  ../237409.1640184030@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/237409.1640184030@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, paulojjs@gmail.com
  Subject: Re: Postgresql crashing during pg_dump
  In-Reply-To: <237409.1640184030@sss.pgh.pa.us>
  References: <CAHJdQrnLoY2ZggPbBSNRoUQD_=spEcW4OuRKheF5=MJ+WP2Zig@mail.gmail.com> <237409.1640184030@sss.pgh.pa.us>

* 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