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 1gW7Li-0000nK-R7 for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Dec 2018 22:14:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gW7Lg-0005GM-S8 for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Dec 2018 22:14:52 +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 1gW7Lg-0005E7-HP for pgsql-hackers@lists.postgresql.org; Sun, 09 Dec 2018 22:14:52 +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 1gW7Ld-0007AP-54 for pgsql-hackers@postgresql.org; Sun, 09 Dec 2018 22:14:51 +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 wB9MEgPL016846; Sun, 9 Dec 2018 17:14:43 -0500 From: Tom Lane To: Andres Freund cc: Stephen Frost , John Naylor , pgsql-hackers Subject: Re: automatically assigning catalog toast oids In-reply-to: <20181209211741.5ohnwu7q4aycvm2t@alap3.anarazel.de> References: <18075.1544380583@sss.pgh.pa.us> <20181209204257.GH3415@tamriel.snowman.net> <20181209211741.5ohnwu7q4aycvm2t@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 09 Dec 2018 13:17:41 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16844.1544393682.1@sss.pgh.pa.us> Date: Sun, 09 Dec 2018 17:14:42 -0500 Message-ID: <16845.1544393682@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-12-09 15:42:57 -0500, Stephen Frost wrote: >> * Tom Lane (tgl@sss.pgh.pa.us) wrote: > I'm a bit dubious that this is a good idea. It's handy, at least for > forensic situations, that the system catalogs have stable OIDs. > Hm, but won't they have that for major versions anyway? We ought not to > change the .bki generation in a way that results in differing oids after > a release, no? Well, that's just a different very-easily-broken assumption. There are a lot of things that make auto-assigned OIDs unstable, and I do not think that we want to guarantee that they'll hold still across a release series. BTW, now that I'm looking at it, I very much dislike the way commit 578b2297 handled auto-assignment of OIDs in catalogs. Not only do I not want to assign more OIDs that way, I don't think we can safely ship v12 like this. There's basically nothing at all that guarantees genbki-assigned OIDs won't overlap initdb-assigned OIDs. In fact, I think it's about guaranteed to blow up in the face of anybody who inserts manually-assigned OIDs above around 9000. What we probably need to do is restructure the FirstBootstrapObjectId business so that there are separate, well-defined ranges for genbki.pl and initdb to use. regards, tom lane