Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX6gC-0003yr-E0 for pgsql-admin@arkaria.postgresql.org; Mon, 26 Oct 2020 17:53:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kX6gB-0008Mr-CW for pgsql-admin@arkaria.postgresql.org; Mon, 26 Oct 2020 17:53:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX6gB-0008Mk-5Z for pgsql-admin@lists.postgresql.org; Mon, 26 Oct 2020 17:53:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX6g4-0002xx-LJ for pgsql-admin@postgresql.org; Mon, 26 Oct 2020 17:53:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 09QHqwcu737424; Mon, 26 Oct 2020 13:52:58 -0400 From: Tom Lane To: Alvaro Herrera cc: Wells Oliver , Stephen Frost , pgsql-admin Subject: Re: Odd pg dump error: cache lookup failure In-reply-to: <20201023185144.GA16041@alvherre.pgsql> References: <20201023185144.GA16041@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 23 Oct 2020 15:51:44 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <737422.1603734778.1@sss.pgh.pa.us> Date: Mon, 26 Oct 2020 13:52:58 -0400 Message-ID: <737423.1603734778@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > [ v3 patches ] This looks committable to me, with one trivial nit: in LockViewRecurse_walker, it'd be better to not do get_rel_name() (or even fetch rte->relid, really) until we've verified the rtekind. As-is, it's wasting cycles and presuming more than it ought to about the error behavior of get_rel_name(). That's a pre-existing problem not the fault of this patch, but we might as well fix it while we're here. regards, tom lane