Re: Is it possible to have a cascade upwards query?

From: Joseph Testa <info(at)dbsec-it(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Mike Martin <redtux1(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Is it possible to have a cascade upwards query?
Date: 2019-03-27 16:18:46
Message-ID: CALFywNV6Mfuk57Hxf0cO8aNmdLEGu3u0WO6v4C4wmAGjK+=q7g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is this like a cascade delete based on constraints(like in the oracle
world), delete parent and all children go away also?

joe

On Wed, Mar 27, 2019 at 12:15 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:

> On 3/27/19 8:58 AM, Mike Martin wrote:
> > As per title, is this possible?
> >
> > Scenario being two tables with a linking pair of fields, where one table
> > is a superset of the other and key is generated by the second table
> >
> > I would like to have the record in table two deleted when I delete the
> > record in table 1
>
> Sorry not enough coffee in me yet to figure the above out:)
>
> Could you provide a simple diagram(schema) to illustrate?
>
> >
> > Thanks
> >
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-03-27 16:23:36 Re: plctl extension issue postgresql 11.2
Previous Message Adrian Klaver 2019-03-27 16:15:15 Re: Is it possible to have a cascade upwards query?