mutually exclusive subtypes - Mailing list pgsql-novice

From Olinga K. Abbott
Subject mutually exclusive subtypes
Date
Msg-id 20060413150837.70279.qmail@web31802.mail.mud.yahoo.com
Whole thread Raw
Responses Re: mutually exclusive subtypes  ("Daniel T. Staal" <DStaal@usa.net>)
Re: mutually exclusive subtypes  (Richard Broersma Jr <rabroersma@yahoo.com>)
List pgsql-novice
Let's say I have the following contrived schema:

TRANSPORTATION_MODE
mode_ID serial
model_number text

AIRPLANE
mode_ID int FK
operational_ceiling nt

AUTOMOBILE
mode_ID int FK
cruising range int


Of course, being an airplane and being an automobile are mutually exclusive.
How does one program the mutual exclusivity in PostgreSQL? I've studied using
check contraints, triggers, and rules, but I'm not finding any obvious way to
program this.

pgsql-novice by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PostgreSQL a slow DB?
Next
From: "Daniel T. Staal"
Date:
Subject: Re: mutually exclusive subtypes