pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org, Rushabh Lathia <rushabh.lathia@gmail.com>
Cc: Tomas Vondra <tomas.vondra@enterprisedb.com>
Subject: Re: Replacing pg_depend PIN entries with a fixed range check
Date: Wed, 26 May 2021 11:37:08 -0400
Message-ID: <1506074.1622043428@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmobXixznpObPhbiePX9VL5GhN3LaHSXsLQ0oJvK1sC319Q@mail.gmail.com>
References: <3737988.1618451008@sss.pgh.pa.us>
	<3784992.1618504668@sss.pgh.pa.us>
	<1363425.1620858059@sss.pgh.pa.us>
	<CA+TgmobXixznpObPhbiePX9VL5GhN3LaHSXsLQ0oJvK1sC319Q@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> 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





view thread (16+ messages)  latest in thread

Message-ID: <1506074.1622043428@sss.pgh.pa.us>
Permalink:  ../1506074.1622043428@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1506074.1622043428@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, rushabh.lathia@gmail.com, tomas.vondra@enterprisedb.com
  Subject: Re: Replacing pg_depend PIN entries with a fixed range check
  In-Reply-To: <1506074.1622043428@sss.pgh.pa.us>
  References: <3737988.1618451008@sss.pgh.pa.us> <3784992.1618504668@sss.pgh.pa.us> <1363425.1620858059@sss.pgh.pa.us> <CA+TgmobXixznpObPhbiePX9VL5GhN3LaHSXsLQ0oJvK1sC319Q@mail.gmail.com> <1506074.1622043428@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox