pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Nico De Ranter <nico.deranter@esaturnus.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_dump crashes
Date: Mon, 25 May 2020 07:20:15 -0700
Message-ID: <5411ea7c-2fc4-e75d-1ae6-f002b06cb1c2@aklaver.com> (raw)
In-Reply-To: <CALVv0fajDBM7nB9joK-gcRbqyCGbfhA1P0VWPNw4iEHEmwcPcQ@mail.gmail.com>
References: <CALVv0fbOkGoYaFtaE4zug6KrNcg3qSYXpZgH4w9-9gUUmr_61g@mail.gmail.com>
	<38072bf3-a3dc-2a4c-21d3-a024a2dfce8b@aklaver.com>
	<CALVv0fZT8OOLRi+XeLq9TU-AU9=MR+W1UcAaD+HXyYme9LmLyw@mail.gmail.com>
	<5655d83a-85ff-e8c0-0547-828aca12db39@aklaver.com>
	<CALVv0fbuUdYxdeFb2MH1JQEbRDQER=xjcw3WptBpAi2nyy1FUQ@mail.gmail.com>
	<c1d837db-0bd8-5e41-d276-b74ab9d98920@aklaver.com>
	<CALVv0fZvs7EmBp-=z=r7VkVp89=BPL0FtACj7U=cBE-UjnxLvg@mail.gmail.com>
	<3e14f4f4-342f-c7bf-8ec4-af348b0c8172@aklaver.com>
	<CALVv0fahxUdb+vhu9hYZsj_OTJv7tzD0PeU2t3f9yM19d6wp4A@mail.gmail.com>
	<b70664d0-1e40-ef32-1fe2-b5fc4d061391@aklaver.com>
	<CALVv0fajDBM7nB9joK-gcRbqyCGbfhA1P0VWPNw4iEHEmwcPcQ@mail.gmail.com>

On 5/24/20 10:30 PM, Nico De Ranter wrote:
> Unfortunately not. I discovered the issue rather late. The last working 
> backup is about 2 months old.

Well first it is entirely possible this is not the only corruption in 
the database.

Second you are probably going to have to reach out to the Bacula folks:

https://www.bacula.org/support/
https://sourceforge.net/projects/bacula/lists/bacula-users

I would say the questions to ask them are:

1) Is the md5 required for a file?

2) If so how and over what is calculated?


Then you could experiment with trying to update the md5 field with new 
data.

>      >
>      >
>      >
>      > Following up on the max(bigint), I tried
>      >
>      >     SELECT md5 FROM public.file where fileid >2087994666;
>      >
>      > and got
>      >
>      >     ERROR:  compressed data is corrupted
>      >
>      > So it does look like those entries are killing it.  Now for the
>      > million-dollar question: how do I get them out?
> 
>     Do you have recent previous backup?
> 
>      >
>      > Nico
>      >
>      > --
>      >
>      > Nico De Ranter
>      >
>      > Operations Engineer
>      >
> 
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 
> 
> 
> -- 
> 
> Nico De Ranter
> 
> Operations Engineer
> 



-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (24+ messages)  latest in thread

Message-ID: <5411ea7c-2fc4-e75d-1ae6-f002b06cb1c2@aklaver.com>
Permalink:  ../5411ea7c-2fc4-e75d-1ae6-f002b06cb1c2@aklaver.com/
Also on:    postgresql.org/message-id/5411ea7c-2fc4-e75d-1ae6-f002b06cb1c2@aklaver.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: adrian.klaver@aklaver.com, nico.deranter@esaturnus.com
  Subject: Re: pg_dump crashes
  In-Reply-To: <5411ea7c-2fc4-e75d-1ae6-f002b06cb1c2@aklaver.com>
  References: <CALVv0fbOkGoYaFtaE4zug6KrNcg3qSYXpZgH4w9-9gUUmr_61g@mail.gmail.com> <38072bf3-a3dc-2a4c-21d3-a024a2dfce8b@aklaver.com> <CALVv0fZT8OOLRi+XeLq9TU-AU9=MR+W1UcAaD+HXyYme9LmLyw@mail.gmail.com> <5655d83a-85ff-e8c0-0547-828aca12db39@aklaver.com> <CALVv0fbuUdYxdeFb2MH1JQEbRDQER=xjcw3WptBpAi2nyy1FUQ@mail.gmail.com> <c1d837db-0bd8-5e41-d276-b74ab9d98920@aklaver.com> <CALVv0fZvs7EmBp-=z=r7VkVp89=BPL0FtACj7U=cBE-UjnxLvg@mail.gmail.com> <3e14f4f4-342f-c7bf-8ec4-af348b0c8172@aklaver.com> <CALVv0fahxUdb+vhu9hYZsj_OTJv7tzD0PeU2t3f9yM19d6wp4A@mail.gmail.com> <b70664d0-1e40-ef32-1fe2-b5fc4d061391@aklaver.com> <CALVv0fajDBM7nB9joK-gcRbqyCGbfhA1P0VWPNw4iEHEmwcPcQ@mail.gmail.com> <5411ea7c-2fc4-e75d-1ae6-f002b06cb1c2@aklaver.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