Re: One parent record with 3 possible child records

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Rob Sargent <robjsargent(at)gmail(dot)com>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>, JORGE MALDONADO <jorgemal1960(at)gmail(dot)com>
Subject: Re: One parent record with 3 possible child records
Date: 2024-05-02 14:02:37
Message-ID: CAKFQuwY6-90W2sO=peE6xf1F07vpbf_4PdKa_bt=4=OAH1GMCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, May 2, 2024 at 6:37 AM Rob Sargent <robjsargent(at)gmail(dot)com> wrote:

> Presuming the id is unique in parent and child, what’s the value of the
> type field in the foreign key? Are you saying the PK on tableMain is
> (type,id), perhaps for clustering purposes?
>
>
>
Preventing the parent record from saying "tblOne" while the actual ID value
is present on "tblTwo".

David J.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Wetmore, Matthew (CTR) 2024-05-02 14:37:09 One parent record with 3 possible child records
Previous Message Rob Sargent 2024-05-02 13:37:14 Re: One parent record with 3 possible child records