pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Way <kevin.way@overtone.org>
To: Christof Glaser <gcg@gl.aser.de>
Subject: Re: table inheritance and foreign key troubles
Date: Wed, 12 Sep 2001 01:24:35 +0000
Message-ID: <20010912012435.B14176@bean.overtone.org> (raw)
In-Reply-To: <20010911104915.9400813098@pinguin.gl.aser.de>
References: <20010911080452.A76783@bean.overtone.org>
	<20010911091250.B8DD213061@pinguin.gl.aser.de>
	<20010911104915.9400813098@pinguin.gl.aser.de>

> PG cannot inherit primary keys or unique constraints, I recall now. So  
> you need to ensure uniqueness for users.node_id:
> CREATE TABLE users (
>   node_id   INT4 UNIQUE,
>   ....
> ) INHERITS (node );

Thank you so much, this is where the flaw in my logic was hiding.  Your
suggestion worked perfectly.

Kevin Way



view thread (5+ messages)

Message-ID: <20010912012435.B14176@bean.overtone.org>
Permalink:  ../20010912012435.B14176@bean.overtone.org/
Also on:    postgresql.org/message-id/20010912012435.B14176@bean.overtone.org

 · 

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: pgsql-sql@postgresql.org
  Cc: kevin.way@overtone.org, gcg@gl.aser.de
  Subject: Re: table inheritance and foreign key troubles
  In-Reply-To: <20010912012435.B14176@bean.overtone.org>

* 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