Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hca0N-0001Yl-Nm for pgsql-general@arkaria.postgresql.org; Sun, 16 Jun 2019 18:35:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hca0L-0007A2-WF for pgsql-general@arkaria.postgresql.org; Sun, 16 Jun 2019 18:35:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hca0L-00079v-JO for pgsql-general@lists.postgresql.org; Sun, 16 Jun 2019 18:35:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hca0J-0000M3-6z for pgsql-general@lists.postgresql.org; Sun, 16 Jun 2019 18:35:48 +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 x5GIZg9p020271; Sun, 16 Jun 2019 14:35:42 -0400 From: Tom Lane To: "Peter J. Holzer" cc: pgsql-general@lists.postgresql.org Subject: Re: bug regclass::oid In-reply-to: <20113.1560709920@sss.pgh.pa.us> References: <20190616181250.x6l3n7bq2j5z4onq@hjp.at> <20113.1560709920@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sun, 16 Jun 2019 14:32:00 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20269.1560710142.1@sss.pgh.pa.us> Date: Sun, 16 Jun 2019 14:35:42 -0400 Message-ID: <20270.1560710142@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > ... I'd suggest recasting this as a join between > pg_catalog and pg_attribute, which would make the join condition > just "where c.oid = a.attrelid". Sigh, that should be "between pg_class and pg_attribute" of course. I'm really only firing on one cylinder today :-( regards, tom lane