| From: | Florian Weimer <fweimer(at)bfk(dot)de> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Joe <dev(at)freedomcircle(dot)net>, Bryce Nesbitt <bryce1(at)obviously(dot)com>, pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Is this a bug? Deleting a column deletes the constraint. |
| Date: | 2006-10-12 16:19:57 |
| Message-ID: | 82d58x7bgy.fsf@mid.bfk.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)bfk(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gerardo Herzig | 2006-10-12 22:18:07 | spliting a row to make several rows |
| Previous Message | Chris Browne | 2006-10-12 14:56:14 | Re: Is this a bug? Deleting a column deletes the constraint. |