Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYen1-0000yI-AM for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Jan 2018 21:17:03 +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 1eYen0-0007wD-TN for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Jan 2018 21:17: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 1eYen0-0007vr-Ku for pgsql-bugs@lists.postgresql.org; Mon, 08 Jan 2018 21:17:02 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eYemy-0001of-1z for pgsql-bugs@lists.postgresql.org; Mon, 08 Jan 2018 21:17:01 +0000 Received: from [192.168.178.37] ([93.104.71.162]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LgXtF-1fCxAK0hCX-00nxCP for ; Mon, 08 Jan 2018 22:16:57 +0100 Subject: Re: BUG #15000: Cache lookup failure To: pgsql-bugs@lists.postgresql.org 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> <32171.1515427496@sss.pgh.pa.us> From: Thomas Kellerer Message-ID: Date: Mon, 8 Jan 2018 22:16:57 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <32171.1515427496@sss.pgh.pa.us> Content-Type: text/plain; charset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ZIMjfSlqFW+5xq1X hoeee/St92VnhlbyQeqOOFNjygVT3Q+wi8UblgMGmI5TSWLF3aZSPRX77zE= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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