From: Tom Lane <tgl@sss.pgh.pa.us>
To: Flavio Henrique Araque Gurgel <fhagur@gmail.com>
Cc: pgsql-bugs@postgresql.org
Cc: osalm@mirakl.com
Subject: Re: ALTER TABLE documentation or parser bug
Date: Wed, 03 Dec 2014 12:44:34 -0500
Message-ID: <19734.1417628674@sss.pgh.pa.us> (raw)
In-Reply-To: <547F462E.8090001@gmail.com>
References: <547F462E.8090001@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Flavio Henrique Araque Gurgel <fhagur@gmail.com> writes:
> Hello all
> In the documentation in:
> http://www.postgresql.org/docs/current/static/sql-altertable.html> It says that, to rename a constraint, we can use:
> ALTER TABLE [ IF EXISTS ] [ ONLY ] name [ * ]
> RENAME CONSTRAINT constraint_name TO new_constraint_name
> Who is wrong, parser or documentation (or myself)?
Documentation, evidently: a look at the grammar shows that IF EXISTS has
been implemented only for a rather haphazard subset of ALTER ... RENAME
cases, and this isn't one of them.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, fhagur@gmail.com, osalm@mirakl.com
Subject: Re: ALTER TABLE documentation or parser bug
In-Reply-To: <19734.1417628674@sss.pgh.pa.us>
References: <547F462E.8090001@gmail.com> <19734.1417628674@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