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 1llvax-0002rq-7A for pgsql-hackers@arkaria.postgresql.org; Wed, 26 May 2021 15:37:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1llvav-0003vN-6x for pgsql-hackers@arkaria.postgresql.org; Wed, 26 May 2021 15:37:17 +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 1llvau-0003vE-VU for pgsql-hackers@lists.postgresql.org; Wed, 26 May 2021 15:37:16 +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 1llvao-0000Om-Mv for pgsql-hackers@lists.postgresql.org; Wed, 26 May 2021 15:37:16 +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 14QFb8Si1506075; Wed, 26 May 2021 11:37:08 -0400 From: Tom Lane To: Robert Haas cc: pgsql-hackers@lists.postgresql.org, Rushabh Lathia , Tomas Vondra Subject: Re: Replacing pg_depend PIN entries with a fixed range check In-reply-to: References: <3737988.1618451008@sss.pgh.pa.us> <3784992.1618504668@sss.pgh.pa.us> <1363425.1620858059@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 26 May 2021 11:11:26 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1506073.1622043428.1@sss.pgh.pa.us> Date: Wed, 26 May 2021 11:37:08 -0400 Message-ID: <1506074.1622043428@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > The first hunk of the patch seems to back away from the idea that the > cutoff is 13000, but the second half of the patch says 13000 still > matters. Not sure I understand what's going on there exactly. Not sure exactly what you're looking at, but IIRC there is a place where the patch is cleaning up after ab596105b's failure to adjust bki.sgml to match its change of FirstBootstrapObjectId from 12000 to 13000. I hadn't bothered to fix that separately, but I guess we should do so, else v14 is going to ship with incorrect docs. > I'm sort of wondering what we think the long term plan ought to be. > Are there some categories of things we should be looking to move out > of the reserved OID space to keep it from filling up? Can we > realistically think of moving the 16384 boundary? I haven't got any wonderful ideas there. I do not see how we can move the 16384 boundary without breaking pg_upgrade'ing, because pg_upgrade relies on preserving user object OIDs that are likely to be not much above that value. Probably, upping FirstNormalObjectId ought to be high on our list of things to do if we ever do force an on-disk compatibility break. In the meantime, we could decrease the 10000 boundary if things get tight above that, but I fear that would annoy some extension maintainers. Another idea is to give up the principle that initdb-time OIDs need to be globally unique. They only really need to be unique within their own catalogs, so we could buy a lot of space by exploiting that. The original reason for that policy was to reduce the risk of mistakes in handwritten OID references in the initial catalog data --- but now that numeric references there are Not Done, it seems like we don't really need that. An intermediate step, perhaps, could be to give up that uniqueness only for OIDs assigned by genbki.pl itself, while keeping it for OIDs below 10000. This'd be appealing if we find that we're getting tight between 10K and 13K. In any case it doesn't seem like the issue is entirely pressing yet. Although ... maybe we should do that last bit now, so that we can revert FirstBootstrapObjectId to 12K before v14 ships? I've felt a little bit of worry that that change might cause problems on machines with a boatload of locales. regards, tom lane