Re: CREATE TABLE LIKE INCLUDING INDEXES support - Mailing list pgsql-patches

From Tom Lane
Subject Re: CREATE TABLE LIKE INCLUDING INDEXES support
Date
Msg-id 12804.1179434407@sss.pgh.pa.us
Whole thread Raw
In response to Re: CREATE TABLE LIKE INCLUDING INDEXES support  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: CREATE TABLE LIKE INCLUDING INDEXES support
List pgsql-patches
I wrote:
> Gregory Stark <stark@enterprisedb.com> writes:
>> Does the SQL spec actually specify what happens if you provide an
>> non-compliant table definition like this?

> It does not.  We could accept expressions there, and pray that the SQL
> committee never extends the spec syntax in a direction incompatible with
> that.  That seems like a pretty risky thing to do though.

[ remembering previous discussions more clearly... ]  Actually there
is a concrete problem here: unique constraints are supposed to be
represented in the information_schema views, and there is no
spec-compliant way to do that for a constraint on something other than
a column.  We'd have to guess at what the SQL committee would do about
that, and the odds of guessing exactly right don't seem encouraging.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support
Next
From: Tom Lane
Date:
Subject: Re: UTF8MatchText