| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Christophe Pettus <xof(at)thebuild(dot)com> |
| Cc: | Thiemo Kellner <thiemo(at)gelassene-pferde(dot)biz>, pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Purely declarative FKs |
| Date: | 2023-10-16 14:06:05 |
| Message-ID: | 2289588.1697465165@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Christophe Pettus <xof(at)thebuild(dot)com> writes:
> On Oct 16, 2023, at 00:51, Thiemo Kellner <thiemo(at)gelassene-pferde(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ron | 2023-10-16 14:23:04 | Re: Purely declarative FKs |
| Previous Message | Jehan-Guillaume de Rorthais | 2023-10-16 13:20:56 | Re: Postgresql HA cluster |