pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Louis-David Mitterrand <cunctator@apartia.ch>
To: pgsql-general@postgresql.org
Subject: child table doesn't inherit PRIMARY KEY?
Date: Sat, 3 Jun 2000 17:22:56 +0200
Message-ID: <20000603172256.A3435@styx> (raw)

When creating a child (through CREATE TABLE ... INHERIT (parent)) it
seems the child gets all of the parent's contraints _except_ its PRIMARY
KEY. Is this normal? Should I add a PRIMARY KEY(id) statement each time
I create an inherited table?

Cheers,

-- 
Louis-David Mitterrand - ldm@apartia.org - http://www.apartia.fr

If at first you don't succeed, redefine success.



view thread (10+ messages)  latest in thread

Message-ID: <20000603172256.A3435@styx>
Permalink:  ../20000603172256.A3435@styx/
Also on:    postgresql.org/message-id/20000603172256.A3435@styx

 · 

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-docs@postgresql.org
  Cc: cunctator@apartia.ch, pgsql-general@postgresql.org
  Subject: Re: child table doesn't inherit PRIMARY KEY?
  In-Reply-To: <20000603172256.A3435@styx>

* 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