public inbox for [email protected]
help / color / mirror / Atom feedFrom: Ron Johnson <[email protected]>
To: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: Automatic deletion of orphaned rows
Date: Wed, 22 Jan 2025 10:15:04 -0500
Message-ID: <CANzqJaBvJ=jXKuyahznN3_GrT0gAdw+r_+xSOd7P72EVufMvSw@mail.gmail.com> (raw)
In-Reply-To: <CAKFQuwa9Z3OiEHA6ZLMdJc=ScaBy=TVL5wMUBVXUtOY08r1tXw@mail.gmail.com>
References: <[email protected]>
<CANzqJaAsAY_u-OoZHojfk6E2bjjndqNEu2qNqy7-Xi-CPbe=_g@mail.gmail.com>
<CAKFQuwa9Z3OiEHA6ZLMdJc=ScaBy=TVL5wMUBVXUtOY08r1tXw@mail.gmail.com>
On Wed, Jan 22, 2025 at 9:37 AM David G. Johnston <
[email protected]> wrote:
> On Wednesday, January 22, 2025, Ron Johnson <[email protected]>
> wrote:
>>
>>
>>> I therefore propose a feature, to be able to specify in a table schema
>>> that a row should be deleted if orphaned.
>>
>>
>> For one thing, rows *can't* be orphaned if there's a foreign key
>> reference.
>>
>
> The description was correct even though using probably imprecise
> terminology. The basic goal is to delete childless parents.
>
That's kinda what I thought he wrote, but it's so far beyond "normal" that
I dismissed the possibility. Parents are allowed to not have
children, after all.
Is there *ANY* DBMS with a built-in reverse FK "parents must have children"
feature?
--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
view thread (2+ messages)
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Automatic deletion of orphaned rows
In-Reply-To: <CANzqJaBvJ=jXKuyahznN3_GrT0gAdw+r_+xSOd7P72EVufMvSw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox