pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Herbert R. Ambos <hrambos@transco.ph>
Cc: pgsql-sql@postgresql.org
Subject: Re: Bug or Feature?
Date: Tue, 10 Feb 2004 03:29:09 -0500
Message-ID: <10796.1076401749@sss.pgh.pa.us> (raw)
In-Reply-To: <001701c3f00e$cec10330$78fba8c0@herbert>
References: <001701c3f00e$cec10330$78fba8c0@herbert>

"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



view thread (4+ messages)  latest in thread

Message-ID: <10796.1076401749@sss.pgh.pa.us>
Permalink:  ../10796.1076401749@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10796.1076401749@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, hrambos@transco.ph
  Subject: Re: Bug or Feature?
  In-Reply-To: <10796.1076401749@sss.pgh.pa.us>

* 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