public inbox for [email protected]
help / color / mirror / Atom feedRe: Automatic deletion of orphaned rows
2+ messages / 2 participants
[nested] [flat]
* Re: Automatic deletion of orphaned rows
@ 2025-01-22 14:37 David G. Johnston <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: David G. Johnston @ 2025-01-22 14:37 UTC (permalink / raw)
To: Ron Johnson <[email protected]>; +Cc: pgsql-generallists.postgresql.org <[email protected]>
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.
David J.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Automatic deletion of orphaned rows
@ 2025-01-22 15:15 Ron Johnson <[email protected]>
parent: David G. Johnston <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Ron Johnson @ 2025-01-22 15:15 UTC (permalink / raw)
To: pgsql-generallists.postgresql.org <[email protected]>
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!
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-01-22 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-01-22 14:37 Re: Automatic deletion of orphaned rows David G. Johnston <[email protected]>
2025-01-22 15:15 ` Ron Johnson <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox