public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Ron Johnson <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: Automatic deletion of orphaned rows
Date: Wed, 22 Jan 2025 07:37:17 -0700
Message-ID: <CAKFQuwa9Z3OiEHA6ZLMdJc=ScaBy=TVL5wMUBVXUtOY08r1tXw@mail.gmail.com> (raw)
In-Reply-To: <CANzqJaAsAY_u-OoZHojfk6E2bjjndqNEu2qNqy7-Xi-CPbe=_g@mail.gmail.com>
References: <[email protected]>
	<CANzqJaAsAY_u-OoZHojfk6E2bjjndqNEu2qNqy7-Xi-CPbe=_g@mail.gmail.com>

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.


view thread (2+ messages)  latest in thread

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], [email protected]
  Subject: Re: Automatic deletion of orphaned rows
  In-Reply-To: <CAKFQuwa9Z3OiEHA6ZLMdJc=ScaBy=TVL5wMUBVXUtOY08r1tXw@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