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: Fri, 22 May 2020 08:36:19 -0700
Message-ID: <b70664d0-1e40-ef32-1fe2-b5fc4d061391@aklaver.com> (raw)
In-Reply-To: <CALVv0fahxUdb+vhu9hYZsj_OTJv7tzD0PeU2t3f9yM19d6wp4A@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>

On 5/22/20 8:17 AM, Nico De Ranter wrote:
> 
> 
> On Fri, May 22, 2020 at 5:14 PM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 5/22/20 8:05 AM, Nico De Ranter wrote:
>      >
> 
>      >
>      >     Assuming the above matches:
>      >
>      >     COPY public.file (fileid, fileindex, jobid, pathid, filenameid,
>      >     deltaseq, markid, lstat, md5)
>      >
>      >     the '????????????????????' would be for the md5 field. I'm
>     going to say
>      >     that is important.
>      >
>      >
>      > But that would be content of the database only. The should matter
>     for
>      > the application but not for a dump of the database, right?
> 
>     Also what does:
> 
>     \d public.file
> 
>     show?
> 
>     In particular are there any triggers on the table?
> 
> 
> bacula=# \d public.file
>                                   Table "public.file"
>     Column   |   Type   | Collation | Nullable |               Default
> ------------+----------+-----------+----------+--------------------------------------
>   fileid     | bigint   |           | not null | 
> nextval('file_fileid_seq'::regclass)
>   fileindex  | integer  |           | not null | 0
>   jobid      | integer  |           | not null |
>   pathid     | integer  |           | not null |
>   filenameid | integer  |           | not null |
>   deltaseq   | smallint |           | not null | 0
>   markid     | integer  |           | not null | 0
>   lstat      | text     |           | not null |
>   md5        | text     |           | not null |
> Indexes:
>      "file_pkey" PRIMARY KEY, btree (fileid)
>      "file_jobid_idx" btree (jobid)
>      "file_jpfid_idx" btree (jobid, pathid, filenameid)
> 
> 
> 
> 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





view thread (24+ messages)  latest in thread

Message-ID: <b70664d0-1e40-ef32-1fe2-b5fc4d061391@aklaver.com>
Permalink:  ../b70664d0-1e40-ef32-1fe2-b5fc4d061391@aklaver.com/
Also on:    postgresql.org/message-id/b70664d0-1e40-ef32-1fe2-b5fc4d061391@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: <b70664d0-1e40-ef32-1fe2-b5fc4d061391@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>

* 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