Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYZfx-00007z-TM for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Jan 2018 15:49:26 +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 1eYZfx-0003PZ-1r for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Jan 2018 15:49:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eYZfw-0003Nn-T1 for pgsql-bugs@lists.postgresql.org; Mon, 08 Jan 2018 15:49:24 +0000 Received: from mout.kundenserver.de ([217.72.192.73]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eYZfu-0007vq-EG for pgsql-bugs@lists.postgresql.org; Mon, 08 Jan 2018 15:49:24 +0000 Received: from [10.8.0.146] ([185.40.248.10]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPSA (Nemesis) id 0MHYb6-1ebt410vsK-003Jtr for ; Mon, 08 Jan 2018 16:49:21 +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> From: Thomas Kellerer Message-ID: <23e16357-4c85-48cf-799a-30aa5ab18405@kellerer.eu> Date: Mon, 8 Jan 2018 16:49:20 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: <30854.1515425711@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:d4fLe3CNT8w/efqJolQgZkLN4CZgGShPwsW+j3NkTreV5bMG2+c 1f+EoKcIMVugX+q/AX0Sos99lWTydK85JIdwL/O5tFh4d5VDIHHZMlW+FU95tnOigBcfEhL lZ+6BwWjbC7wc30PHR/jDGumZZzWKzw90S6CgKl4NOkqFUEa7Xwm1wGo6lTILMAQ9zajRTS hF4E+2fmI/10waA6c7NJA== X-UI-Out-Filterresults: notjunk:1;V01:K0:dzZBIjKM424=:te0LqKsdgWBgmvBeFPT10V Qo7bvf8tEge0dYIpKF8i7um3/HpI1oeTqzQoO52r47AkHjzb7wwp+aMn2Q5Ix0mpKCU4A0ibp N9VL80hf5oZcspp5nEAL90xWb2v8/RQArn7HLaZ1/lkGu/ayf2vS64URATqsypWHQ1+5vGYCg BbdB6UCEx0pGknwSS7YXJ7g7hhnqsELJ+1uGHaCqGoy+Qh8GUMTJhruQR3VAE4LGDmfsJjsxM f78KEZr/fzqT+GZobpvPEFD7jTI2plzHDU7KXRvjd2HOdGdlu+zo47LRwsMnoUQTJtrXdD7i4 ySoY0GAXpefI1l+kEqRYgM55dHQHXhpaahBdvvVtU1yWf+67UDQ/HlcZVGSsa+Rwac+/SKSTA hW/YNVCBrUipuHf8ExrHespSOGS/saOYGTehNf7AOSkDasjUYnhbwki79OzEeyLdfAOHvCCXQ ivNIro6LJTXWssjMALa8dSys2pbj7CAra3mPkoPCWae9IDey6ktMMOEfDRB4OD7ino5Pigi7e OX41bOq0hh36E5IuR7c89g8q4fTZc9+QKZepTzYLg2OYVz3rasQ0g6jZ5sPNqtL5G9UJ9XDbV s1R/scmto7FSM2u9XqAJ6soOFKHkgfCupEILpENcGzxTd36S/359jRZF05dQ1PPd9X87ZPCUl l5TrosRDKmxwDk1w/VjYNuYuaiaFfllwHuFkUf0T9iDEo0YrUWbgVEa007+DlPnMK5J8a7zgY KQP8TNISew00y0/r4utegqIuRipv+KNxZMlC+G1sy+EdEPfvUztyjnSejEU= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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