Search Postgresql Archives

Re: Automatic deletion of orphaned rows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 22, 2025 at 9:37 AM David G. Johnston <david.g.johnston@xxxxxxxxx> wrote:
On Wednesday, January 22, 2025, Ron Johnson <ronljohnsonjr@xxxxxxxxx> 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!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux