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 1nhHah-0000Jq-Ro for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Apr 2022 21:10:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nhHag-0004tj-LE for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Apr 2022 21:10:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhHag-0004oC-Af for pgsql-hackers@lists.postgresql.org; Wed, 20 Apr 2022 21:10:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhHae-0003t0-70 for pgsql-hackers@lists.postgresql.org; Wed, 20 Apr 2022 21:10:21 +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 23KLAIvn2997792; Wed, 20 Apr 2022 17:10:18 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers@lists.postgresql.org, John Naylor Subject: Re: renumber_oids.pl needs some updates In-reply-to: <2eab924a-9667-d287-5e84-a3c54d5f433e@enterprisedb.com> References: <2995325.1650487527@sss.pgh.pa.us> <2eab924a-9667-d287-5e84-a3c54d5f433e@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Wed, 20 Apr 2022 22:56:53 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2997790.1650489018.1@sss.pgh.pa.us> Date: Wed, 20 Apr 2022 17:10:18 -0400 Message-ID: <2997791.1650489018@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 20.04.22 22:45, Tom Lane wrote: >> The attached proposed patch invents a variant macro >> DECLARE_TOAST_WITH_MACRO for the relatively small number of cases >> where we need such OID macros. > This makes sense. > A more elaborate (future) project would be to have genbki.pl generate > all of IsSharedRelation(), which is the only place these toast-table-OID > macros are used, AFAICT. Perhaps. We invent shared catalogs at a slow enough rate that I'm not sure the effort would ever pay for itself in person-hours, but maybe making such invention a trifle less error-prone is worth something. I'd still want to keep this form of DECLARE_TOAST, in case someone comes up with a different reason to want macro names for toast OIDs. regards, tom lane