pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christophe Pettus <xof@thebuild.com>
Cc: Thiemo Kellner <thiemo@gelassene-pferde.biz>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Purely declarative FKs
Date: Mon, 16 Oct 2023 10:06:05 -0400
Message-ID: <2289588.1697465165@sss.pgh.pa.us> (raw)
In-Reply-To: <60D62406-E176-4F93-B9B4-C1C6CFA66B84@thebuild.com>
References: <589ff648-9774-d166-450e-74695ae77161@gelassene-pferde.biz>
	<60D62406-E176-4F93-B9B4-C1C6CFA66B84@thebuild.com>

Christophe Pettus <xof@thebuild.com> writes:
> On Oct 16, 2023, at 00:51, Thiemo Kellner <thiemo@gelassene-pferde.biz> wrote:
>> Question: Are there plans to provide a feature in PostgreSQL that one
>> can have foreign keys for purely documentation purpose - I know, one
>> could use a modelling tool and just not implement the FKs, but my
>> reality is, there is hardly ever a modelling tool involved.

> The answer to the specific question is, no, I don't believe that there
> any plans to implement purely documentary foreign keys.

Recent versions of the SQL spec have a NOT ENFORCED option for
constraints, which is what I think you're looking for here.
If somebody came with a well-thought-out patch to add that feature,
we'd likely take it.  But this is definitely a "scratch your own
itch" situation; I don't know of anyone already working on such
a thing.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <2289588.1697465165@sss.pgh.pa.us>
Permalink:  ../2289588.1697465165@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2289588.1697465165@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, xof@thebuild.com, thiemo@gelassene-pferde.biz
  Subject: Re: Purely declarative FKs
  In-Reply-To: <2289588.1697465165@sss.pgh.pa.us>
  References: <589ff648-9774-d166-450e-74695ae77161@gelassene-pferde.biz> <60D62406-E176-4F93-B9B4-C1C6CFA66B84@thebuild.com> <2289588.1697465165@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