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 25508.1179412319@sss.pgh.pa.us
Whole thread Raw
In response to Re: CREATE TABLE LIKE INCLUDING INDEXES support  (NikhilS <nikkhils@gmail.com>)
Responses Re: CREATE TABLE LIKE INCLUDING INDEXES support  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-patches
NikhilS <nikkhils@gmail.com> writes:
> I just now realized that even though we allow the above. We do not allow:

> pg=# create table t1 (a int, b int, unique(a+b));

> Any specific reason for this behaviour?

It'd be contrary to SQL spec.  The UNIQUE constraint takes a list of
column names, full stop.

            regards, tom lane

pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: UTF8MatchText
Next
From: Bruce Momjian
Date:
Subject: Re: Patch for seq scan & scan resistant bufmgr