pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Replacing pg_depend PIN entries with a fixed range check
Date: Thu, 15 Apr 2021 20:10:28 -0400
Message-ID: <3966931.1618531828@sss.pgh.pa.us> (raw)
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>

Andres Freund <andres@anarazel.de> 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





view thread (16+ messages)  latest in thread

Message-ID: <3966931.1618531828@sss.pgh.pa.us>
Permalink:  ../3966931.1618531828@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3966931.1618531828@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, andres@anarazel.de
  Subject: Re: Replacing pg_depend PIN entries with a fixed range check
  In-Reply-To: <3966931.1618531828@sss.pgh.pa.us>
  References: <3737988.1618451008@sss.pgh.pa.us> <20210415234812.ylpcg3skayca7axw@alap3.anarazel.de> <3965335.1618531164@sss.pgh.pa.us> <20210416000547.qgbmrvdxhezmzrsu@alap3.anarazel.de> <3966931.1618531828@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