Re: Table inheritance surprise - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Table inheritance surprise
Date
Msg-id 200806262253.m5QMr5O18993@momjian.us
Whole thread Raw
In response to Table inheritance surprise  (David Fetter <david@fetter.org>)
Responses Re: Table inheritance surprise  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
David Fetter wrote:
> Folks,
> 
> When I do CREATE TABLE foo(LIKE bar INCLUDING CONSTRAINTS), it doesn't
> include foreign key constraints (8.3.1).  I believe this is surprising
> behavior, but maybe not a bug, so I'd like to propose another bit of
> syntactic sugar, namely
> 
>     LIKE [INCLUDING FOREIGN KEYS]
> 
> which would do what it looks like it does.
> 
> What say?

TODO has:
       o Allow inherited tables to inherit indexes, UNIQUE constraints,         and primary/foreign keys

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Ron Mayer
Date:
Subject: Re: Planner creating ineffective plans on LEFT OUTER joins
Next
From: Tom Lane
Date:
Subject: Re: CVS Head psql bug?