Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fgB21-0008Nw-Gz for pgsql-general@arkaria.postgresql.org; Thu, 19 Jul 2018 15:39:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fgB1z-0008J9-Oj for pgsql-general@arkaria.postgresql.org; Thu, 19 Jul 2018 15:39:51 +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.89) (envelope-from ) id 1fgB1z-0008J1-4v for pgsql-general@lists.postgresql.org; Thu, 19 Jul 2018 15:39:51 +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 1fgB1w-00071I-GR for pgsql-general@lists.postgresql.org; Thu, 19 Jul 2018 15:39:49 +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 w6JFdja8000840; Thu, 19 Jul 2018 11:39:45 -0400 From: Tom Lane To: Alessandro Aste cc: pgsql-general@lists.postgresql.org Subject: Re: cache lookup failed for attribute 1 of relation XXXXXX In-reply-to: References: <21687.1532011279@sss.pgh.pa.us> Comments: In-reply-to Alessandro Aste message dated "Thu, 19 Jul 2018 16:49:07 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <838.1532014785.1@sss.pgh.pa.us> Date: Thu, 19 Jul 2018 11:39:45 -0400 Message-ID: <839.1532014785@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk [ please keep the list cc'd for the archives' sake ] Alessandro Aste writes: > Hello Tom, thanks for your reply: > SELECT * FROM pg_class WHERE OID = 2223152859 ; > (0 rows) > I'm not aware of any DDL at that time. Hm. Well, that OID was definitely there when pg_dump looked, and it's not there now, so something changed --- though we can't prove it changed concurrently. In any case, I'd bet that if we ran this to ground it would prove to be a concurrent-DDL issue. pg_dump tries to protect itself against concurrent DDL, but for assorted architectural reasons the protection is not 100%; sometimes you can get odd failures like this, essentially due to "clock skew" between pg_dump's view of the catalogs and the server's view of the catalogs. As long as it works on retry, I wouldn't worry too much about it. regards, tom lane