pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
To: Craig Ringer <craig.ringer@enterprisedb.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Add primary keys to system catalogs
Date: Thu, 21 Jan 2021 08:39:03 +0100
Message-ID: <de49a11e-b448-1af8-c3ac-e92c0b4e2a7d@2ndquadrant.com> (raw)
In-Reply-To: <CA+TgmoZuq+x_XQywP1Nr5sez7nx0w1Gv8O9wd0xiXLpRzMjJyg@mail.gmail.com>
References: <dc5f44d9-5ec1-a596-0251-dadadcdede98@2ndquadrant.com>
	<CAGRY4nz8dbL1OAT9X+EB1c_q_ZxJsdB-dp8csSLqCEDb1o6=Eg@mail.gmail.com>
	<CA+TgmoZuq+x_XQywP1Nr5sez7nx0w1Gv8O9wd0xiXLpRzMjJyg@mail.gmail.com>

On 2021-01-18 00:35, Robert Haas wrote:
> I don't have any complaint about labelling some of the unique indexes
> as primary keys, but I think installing foreign keys that don't really
> enforce anything may lead to confusion.

FWIW, "not enforced" constraints (such as foreign keys) is a feature 
that is in the SQL standard and in other SQL implementations.

-- 
Peter Eisentraut
2ndQuadrant, an EDB company
https://www.2ndquadrant.com/





view thread (39+ messages)  latest in thread

Message-ID: <de49a11e-b448-1af8-c3ac-e92c0b4e2a7d@2ndquadrant.com>
Permalink:  ../de49a11e-b448-1af8-c3ac-e92c0b4e2a7d@2ndquadrant.com/
Also on:    postgresql.org/message-id/de49a11e-b448-1af8-c3ac-e92c0b4e2a7d@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-hackers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, robertmhaas@gmail.com, craig.ringer@enterprisedb.com
  Subject: Re: Add primary keys to system catalogs
  In-Reply-To: <de49a11e-b448-1af8-c3ac-e92c0b4e2a7d@2ndquadrant.com>
  References: <dc5f44d9-5ec1-a596-0251-dadadcdede98@2ndquadrant.com> <CAGRY4nz8dbL1OAT9X+EB1c_q_ZxJsdB-dp8csSLqCEDb1o6=Eg@mail.gmail.com> <CA+TgmoZuq+x_XQywP1Nr5sez7nx0w1Gv8O9wd0xiXLpRzMjJyg@mail.gmail.com> <de49a11e-b448-1af8-c3ac-e92c0b4e2a7d@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