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:09:53 -0700
Message-ID: <3120cb66-0b6c-c78b-8d96-eb7d13e1352e@aklaver.com> (raw)
In-Reply-To: <CALVv0fZvs7EmBp-=z=r7VkVp89=BPL0FtACj7U=cBE-UjnxLvg@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>
On 5/22/20 8:05 AM, Nico De Ranter wrote:
>
> On Fri, May 22, 2020 at 5:02 PM Adrian Klaver <adrian.klaver@aklaver.com
> <mailto:adrian.klaver@aklaver.com>> wrote:
>
> On 5/22/20 7:55 AM, Nico De Ranter wrote:
> > Correct.
> >
> > If I run 'pg_dumpall --cluster 11/main --file=dump.sql' the end
> of the
> > file looks like:
> >
> > ###### cut here
> > 4557430888798830399 1061109567 1061109567 1061109567 1061109567
> 16191 \N
> > \N ??????????????????????????????
> > 4557430888798830399 1061109567 1061109567 1061109567 1061109567
> 16191 \N
> > \N ??????????????????????????????
> > \.
> >
> > ###### cut here
> >
> > If I run 'pg_dump --table=public.file --cluster 11/main
> > --file=dump-2.sql bacula' those lines are actually followed by
> about
> > 850 or so lines that look ok. I'm assuming the difference is due to
> > buffering.
> > However the fact that I do see a number of regular lines
> following this
> > may suggest it's just garbage in the table but not really causing
> the
> > issue afterall.
>
> 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?
I would think that depends on what '???????' is really representing.
In the database try:
SELECT md5 FROM public.file where fileid = 4557430888798830399;
--
Adrian Klaver
adrian.klaver@aklaver.com
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: <3120cb66-0b6c-c78b-8d96-eb7d13e1352e@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> <3120cb66-0b6c-c78b-8d96-eb7d13e1352e@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