pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joel Jacobson <joel@compiler.org>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Craig Ringer <craig.ringer@enterprisedb.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Add primary keys to system catalogs
Date: Mon, 18 Jan 2021 13:33:02 -0500
Message-ID: <346555.1610994782@sss.pgh.pa.us> (raw)
In-Reply-To: <343866.1610990591@sss.pgh.pa.us>
References: <dc5f44d9-5ec1-a596-0251-dadadcdede98@2ndquadrant.com>
	<CAGRY4nz8dbL1OAT9X+EB1c_q_ZxJsdB-dp8csSLqCEDb1o6=Eg@mail.gmail.com>
	<CA+TgmoZuq+x_XQywP1Nr5sez7nx0w1Gv8O9wd0xiXLpRzMjJyg@mail.gmail.com>
	<343866.1610990591@sss.pgh.pa.us>

I wrote:
> ... I still like the idea of marking OID relationships in the
> catalog headers though.  Perhaps we should take Joel's suggestion
> of a new system catalog more seriously, and have genbki.pl populate
> such a catalog from info in the catalog header files.

On second thought, a catalog is overkill; it'd only be useful if the data
could change after initdb, which this data surely cannot.  The right way
to expose such info to SQL is with a set-returning function reading a
constant table in the C code, a la pg_get_keywords().  That way takes a
whole lot less infrastructure and is just as useful to SQL code.

[ wanders away wondering about a debug mode in which we actually validate
OIDs inserted into such columns... ]

			regards, tom lane





view thread (39+ messages)  latest in thread

Message-ID: <346555.1610994782@sss.pgh.pa.us>
Permalink:  ../346555.1610994782@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/346555.1610994782@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, joel@compiler.org, robertmhaas@gmail.com, craig.ringer@enterprisedb.com, peter.eisentraut@2ndquadrant.com
  Subject: Re: Add primary keys to system catalogs
  In-Reply-To: <346555.1610994782@sss.pgh.pa.us>
  References: <dc5f44d9-5ec1-a596-0251-dadadcdede98@2ndquadrant.com> <CAGRY4nz8dbL1OAT9X+EB1c_q_ZxJsdB-dp8csSLqCEDb1o6=Eg@mail.gmail.com> <CA+TgmoZuq+x_XQywP1Nr5sez7nx0w1Gv8O9wd0xiXLpRzMjJyg@mail.gmail.com> <343866.1610990591@sss.pgh.pa.us> <346555.1610994782@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