pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Florian Weimer <fweimer@bfk.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Joe <dev@freedomcircle.net>
Cc: Bryce Nesbitt <bryce1@obviously.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Is this a bug? Deleting a column deletes the constraint.
Date: Thu, 12 Oct 2006 18:19:57 +0200
Message-ID: <82d58x7bgy.fsf@mid.bfk.de> (raw)
In-Reply-To: <10299.1160663949@sss.pgh.pa.us>
References: <452DCE97.2090706@obviously.com>
	<2323.1160630748@sss.pgh.pa.us>
	<1160645987.51367.13.camel@pampa>
	<10299.1160663949@sss.pgh.pa.us>

* 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



view thread (6+ messages)

Message-ID: <82d58x7bgy.fsf@mid.bfk.de>
Permalink:  ../82d58x7bgy.fsf@mid.bfk.de/
Also on:    postgresql.org/message-id/82d58x7bgy.fsf@mid.bfk.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: fweimer@bfk.de, tgl@sss.pgh.pa.us, dev@freedomcircle.net, bryce1@obviously.com
  Subject: Re: Is this a bug? Deleting a column deletes the constraint.
  In-Reply-To: <82d58x7bgy.fsf@mid.bfk.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox