pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: frederik nietzsche <nietzsche_psql@yahoo.it>
Cc: pgsql-sql@postgresql.org
Subject: Re: how to inherits the references...
Date: Thu, 11 Jul 2002 09:00:48 -0700 (PDT)
Message-ID: <20020711085735.H63911-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20020711144358.42879.qmail@web12906.mail.yahoo.com>


On Thu, 11 Jul 2002, [iso-8859-1] frederik nietzsche wrote:

> as if the sigles where not in the "sigles" table, but
> it's there!
> it's probably because of the way in which psql threats
>  the inheritance.
> my question is (finally): is there some workaround for
> this?? or: am I making some mistakes??

Foreign keys don't inherit to children table on either
the fk or pk side.  Note also that the primary keys in
the above will not guarantee that sigle is unique
across the whole set, only across each table individually.

Pretty much the only workaround I know of is to make a table
with the key columns and have each of the tables in the
inheritance tree have its key columns reference that and anything
that wants to reference the inheritance tree references
the other table instead.




view thread (4+ messages)  latest in thread

Message-ID: <20020711085735.H63911-100000@megazone23.bigpanda.com>
Permalink:  ../20020711085735.H63911-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020711085735.H63911-100000@megazone23.bigpanda.com

 · 

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 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-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, nietzsche_psql@yahoo.it
  Subject: Re: how to inherits the references...
  In-Reply-To: <20020711085735.H63911-100000@megazone23.bigpanda.com>
  References: <20020711144358.42879.qmail@web12906.mail.yahoo.com> <20020711085735.H63911-100000@megazone23.bigpanda.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