pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Christoph Berg <myon@debian.org>
To: Andres Freund <andres@anarazel.de>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility.
Date: Wed, 21 Nov 2018 10:54:21 +0100
Message-ID: <74aafd48-1a2a-37fb-aab8-ffaed70a2b0f@2ndquadrant.com> (raw)
In-Reply-To: <20181121082042.GA15795@msg.df7cb.de>
References: <E1gPG3j-0003cy-03@gemulon.postgresql.org>
	<20181121082042.GA15795@msg.df7cb.de>

On 21/11/2018 09:20, Christoph Berg wrote:
> Re: Andres Freund 2018-11-21 <E1gPG3j-0003cy-03@gemulon.postgresql.org>
>> The biggest user of WITH OID columns was postgres' catalog. This
>> commit changes all 'magic' oid columns to be columns that are normally
>> declared and stored.
> 
> postgres=# \d+ pg_class
> [...]
> Indexe:
>     "pg_class_oid_index" UNIQUE, btree (oid)
> 
> Now that oid is a proper column, shouldn't that be a PRIMARY KEY?
> (Just for the looks.)

This is an independent consideration.  There was nothing before that
prevented an index on an oid column from being a primary key that isn't
still there.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (11+ messages)  latest in thread

Message-ID: <74aafd48-1a2a-37fb-aab8-ffaed70a2b0f@2ndquadrant.com>
Permalink:  ../74aafd48-1a2a-37fb-aab8-ffaed70a2b0f@2ndquadrant.com/
Also on:    postgresql.org/message-id/74aafd48-1a2a-37fb-aab8-ffaed70a2b0f@2ndquadrant.com

 · 

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-committers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, myon@debian.org, andres@anarazel.de, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility.
  In-Reply-To: <74aafd48-1a2a-37fb-aab8-ffaed70a2b0f@2ndquadrant.com>
  References: <E1gPG3j-0003cy-03@gemulon.postgresql.org> <20181121082042.GA15795@msg.df7cb.de> <74aafd48-1a2a-37fb-aab8-ffaed70a2b0f@2ndquadrant.com>

* 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