From: Thomas Kellerer <thomas@kellerer.eu>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15000: Cache lookup failure
Date: Mon, 8 Jan 2018 16:49:20 +0100
Message-ID: <23e16357-4c85-48cf-799a-30aa5ab18405@kellerer.eu> (raw)
In-Reply-To: <30854.1515425711@sss.pgh.pa.us>
References: <20180108113150.21778.4472@wrigleys.postgresql.org>
<29960.1515424337@sss.pgh.pa.us>
<d8d64af6-969a-e9d0-e1b4-5c8b6bc7ea02@kellerer.eu>
<30854.1515425711@sss.pgh.pa.us>
Tom Lane schrieb am 08.01.2018 um 16:35:
> OK. The explanation then presumably is that something is dropping that
> table concurrently with the pg_dump run. It remains unclear to me why
> pg_dump is failing to protect itself against such a drop, but before we
> can figure that out, we need to be able to reproduce the situation.
>
>
> Can you identify anything that would be dropping tables concurrently
> with this script?
I feel ashamed :(
There was a left over pipe symbol in the script that we didn't see:
pg_dump --table=l10n --table=l10n_value --clean ${db_stag} |
psql --single-transaction --dbname=${db_prod} --file=${backup_stag}
So pg_dump pipes a script with DROP statement into psql, which then
runs essentially the same script again which was created in a previous step (also with --clean)
Seeing my (stupid) mistake, I am not sure if this is supposed to work or not...
Thomas
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-bugs@postgresql.org
Cc: thomas@kellerer.eu
Subject: Re: BUG #15000: Cache lookup failure
In-Reply-To: <23e16357-4c85-48cf-799a-30aa5ab18405@kellerer.eu>
References: <20180108113150.21778.4472@wrigleys.postgresql.org> <29960.1515424337@sss.pgh.pa.us> <d8d64af6-969a-e9d0-e1b4-5c8b6bc7ea02@kellerer.eu> <30854.1515425711@sss.pgh.pa.us> <23e16357-4c85-48cf-799a-30aa5ab18405@kellerer.eu>
* 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