Re: Bug or Feature? - Mailing list pgsql-sql

From Tom Lane
Subject Re: Bug or Feature?
Date
Msg-id 10796.1076401749@sss.pgh.pa.us
Whole thread Raw
In response to Bug or Feature?  ("Herbert R. Ambos" <hrambos@transco.ph>)
List pgsql-sql
"Herbert R. Ambos" <hrambos@transco.ph> writes:
> [ drops only column of a table ]

> Is this allowed in SQL?

The SQL spec forbids that.  We deliberately decided to ignore the spec
restriction, because it creates too many unpleasant boundary cases for
tools that want to manipulate table definitions.  "DROP COLUMN foo"
shouldn't depend on whether there are other columns besides foo.

In short, yes, it's a feature.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Kumar"
Date:
Subject: Error in declaring %rowtype for recurrence
Next
From: Tom Lane
Date:
Subject: Re: Error in declaring %rowtype for recurrence