Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYZv4-00016Z-ST for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Jan 2018 16:05:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYZv4-00018R-3R for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Jan 2018 16:05:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eYZv3-000185-R1 for pgsql-bugs@lists.postgresql.org; Mon, 08 Jan 2018 16:05:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eYZv1-0003Lr-I5 for pgsql-bugs@lists.postgresql.org; Mon, 08 Jan 2018 16:05:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w08G4ucK032172; Mon, 8 Jan 2018 11:04:56 -0500 From: Tom Lane To: Thomas Kellerer cc: pgsql-bugs@lists.postgresql.org 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> <30854.1515425711@sss.pgh.pa.us> <23e16357-4c85-48cf-799a-30aa5ab18405@kellerer.eu> Comments: In-reply-to Thomas Kellerer message dated "Mon, 08 Jan 2018 16:49:20 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32170.1515427496.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 08 Jan 2018 11:04:56 -0500 Message-ID: <32171.1515427496@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Kellerer writes: > There was a left over pipe symbol in the script that we didn't see: > pg_dump --table=3Dl10n --table=3Dl10n_value --clean ${db_stag} | > psql --single-transaction --dbname=3D${db_prod} --file=3D${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 s= tep (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? regards, tom lane