From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Mike Martin <redtux1@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Is it possible to have a cascade upwards query?
Date: Wed, 27 Mar 2019 09:15:15 -0700
Message-ID: <fc9fcf14-e20a-f665-72f4-b6344336ddff@aklaver.com> (raw)
In-Reply-To: <CAOwYNKaPAx20Vdwu+Kch6uw6NKYAtGvCKjNBbD-9E6U3pGNMcA@mail.gmail.com>
References: <CAOwYNKaPAx20Vdwu+Kch6uw6NKYAtGvCKjNBbD-9E6U3pGNMcA@mail.gmail.com>
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.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, redtux1@gmail.com
Subject: Re: Is it possible to have a cascade upwards query?
In-Reply-To: <fc9fcf14-e20a-f665-72f4-b6344336ddff@aklaver.com>
References: <CAOwYNKaPAx20Vdwu+Kch6uw6NKYAtGvCKjNBbD-9E6U3pGNMcA@mail.gmail.com> <fc9fcf14-e20a-f665-72f4-b6344336ddff@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox