pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <thomas@kellerer.eu>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15000: Cache lookup failure
Date: Mon, 8 Jan 2018 22:16:57 +0100
Message-ID: <f87ba316-781b-52e2-d7d0-5bc77c26b24b@kellerer.eu> (raw)
In-Reply-To: <32171.1515427496@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>
	<23e16357-4c85-48cf-799a-30aa5ab18405@kellerer.eu>
	<32171.1515427496@sss.pgh.pa.us>

Tom Lane schrieb am 08.01.2018 um 17:04:
>> 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)
> 
> Hm, but if psql is restoring into a different database than pg_dump
> is dumping from, I don't see how they'd interact?

Yes, put psql is running the restore script (created with --clean) *twice*:
once because of the pipe and a second time because of the --file argument




view thread (7+ messages)

Message-ID: <f87ba316-781b-52e2-d7d0-5bc77c26b24b@kellerer.eu>
Permalink:  ../f87ba316-781b-52e2-d7d0-5bc77c26b24b@kellerer.eu/
Also on:    postgresql.org/message-id/f87ba316-781b-52e2-d7d0-5bc77c26b24b@kellerer.eu

 · 

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-bugs@postgresql.org
  Cc: thomas@kellerer.eu
  Subject: Re: BUG #15000: Cache lookup failure
  In-Reply-To: <f87ba316-781b-52e2-d7d0-5bc77c26b24b@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> <32171.1515427496@sss.pgh.pa.us> <f87ba316-781b-52e2-d7d0-5bc77c26b24b@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