pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Linderman <linderdm@ironhilltechnology.com>
To: pgsql-sql@postgresql.org
Subject: Inheriting Primary Keys
Date: Mon, 20 Dec 1999 10:00:37 -0500
Message-ID: <005001bf4afa$f97d6f90$e68ca8c0@eng.ironhilltech.com> (raw)

A coworker recently was playing with inheritance in PostgreSQL, and noticed
that Primary Keys were not inhetited by child tables.  He created a parent
table with a Primary Key, then created a tabel to inhetir the parent, but
the unique constraint of the primary key was not passed on.  Is this a known
occurance?  If so, how do we enforce the uniqueness of the inherited column?

Dan Linderman
Web Programmer
Iron Hill Technology
linderdm@ironhilltech.com
302-369-9750 x23
www.ironhilltech.com




Message-ID: <005001bf4afa$f97d6f90$e68ca8c0@eng.ironhilltech.com>
Permalink:  ../005001bf4afa$f97d6f90$e68ca8c0@eng.ironhilltech.com/
Also on:    postgresql.org/message-id/005001bf4afa$f97d6f90$e68ca8c0@eng.ironhilltech.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: linderdm@ironhilltechnology.com
  Subject: Re: Inheriting Primary Keys
  In-Reply-To: <005001bf4afa$f97d6f90$e68ca8c0@eng.ironhilltech.com>
  References: <005001bf4afa$f97d6f90$e68ca8c0@eng.ironhilltech.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