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 1lXC4B-0002Ii-4l for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Apr 2021 00:10:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lXC49-0007Bn-Up for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Apr 2021 00:10:33 +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 1lXC49-0007Bf-Nz for pgsql-hackers@lists.postgresql.org; Fri, 16 Apr 2021 00:10:33 +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 1lXC47-0006qN-NK for pgsql-hackers@lists.postgresql.org; Fri, 16 Apr 2021 00:10:32 +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 13G0ASOK3966932; Thu, 15 Apr 2021 20:10:28 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org Subject: Re: Replacing pg_depend PIN entries with a fixed range check In-reply-to: <20210416000547.qgbmrvdxhezmzrsu@alap3.anarazel.de> References: <3737988.1618451008@sss.pgh.pa.us> <20210415234812.ylpcg3skayca7axw@alap3.anarazel.de> <3965335.1618531164@sss.pgh.pa.us> <20210416000547.qgbmrvdxhezmzrsu@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 15 Apr 2021 17:05:47 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3966930.1618531828.1@sss.pgh.pa.us> Date: Thu, 15 Apr 2021 20:10:28 -0400 Message-ID: <3966931.1618531828@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2021-04-15 19:59:24 -0400, Tom Lane wrote: >> No, *neither* of them are pinned, and we don't want them to be. >> It's something of a historical artifact that template1 has a low OID. > Hm, it makes sense for template1 not to be pinned, but it doesn't seem > as obvious why that should be the case for template0. IIRC, the docs suggest that in an emergency you could recreate either of them from the other. Admittedly, if you've put stuff in template1 then this might cause problems later, but I think relatively few people do that. > I'm not at all concerned about the speed after the change - it just > seems cleaner and easier to understand not to have exceptions. We had these exceptions already, they were just implemented in initdb rather than the backend. regards, tom lane