Re: Is this a bug? Deleting a column deletes the constraint. - Mailing list pgsql-sql

From Florian Weimer
Subject Re: Is this a bug? Deleting a column deletes the constraint.
Date
Msg-id 82d58x7bgy.fsf@mid.bfk.de
Whole thread Raw
In response to Re: Is this a bug? Deleting a column deletes the constraint.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
* Tom Lane:

> The CREATE TABLE reference page further amplifies:
>
>   PostgreSQL allows a table of no columns to be created (for example,
>   CREATE TABLE foo();). This is an extension from the SQL standard, which
>   does not allow zero-column tables. Zero-column tables are not in
>   themselves very useful, but disallowing them creates odd special cases
>   for ALTER TABLE DROP COLUMN, so it seems cleaner to ignore this spec
>   restriction.

And you need the syntax for table partitioning.

-- 
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Durlacher Allee 47            tel: +49-721-96201-1
D-76131 Karlsruhe             fax: +49-721-96201-99


pgsql-sql by date:

Previous
From: Chris Browne
Date:
Subject: Re: Is this a bug? Deleting a column deletes the constraint.
Next
From: Gerardo Herzig
Date:
Subject: spliting a row to make several rows