pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: maxim.boguk@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8176: problem with the "ALTER TYPE name RENAME TO new_name [ CASCADE | RESTRICT ]" syntax
Date: Mon, 27 May 2013 10:23:52 -0400
Message-ID: <20130527142352.GT8597@tamriel.snowman.net> (raw)
In-Reply-To: <20130527123648.GM8597@tamriel.snowman.net>
References: <E1Ugrng-000690-WB@wrigleys.postgresql.org>
	<20130527123648.GM8597@tamriel.snowman.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Maxim,

* Stephen Frost (sfrost@snowman.net) wrote:
> * maxim.boguk@gmail.com (maxim.boguk@gmail.com) wrote:
> > It seems that documentation wrong or [ CASCADE | RESTRICT ] feature of ALTER
> > TYPE ... RENAME TO isn't implemented.
> 
> Actually, I'm pretty sure it's implemented but the grammar for it was
> broken during refactoring to have all the ALTER .. RENAME operations go
> through the same code paths.

Nope, I was wrong- this looks to be a documentation bug, actually.  The
documentation should be:

ALTER TYPE name RENAME ATTRIBUTE attribute_name TO new_attribute_name [ CASCADE | RESTRICT ]
ALTER TYPE name RENAME TO new_name

Which makes more sense (to me at least) anyway.  Do you have a need for
this version:

ALTER TYPE name RENAME TO new_name [ CASCADE | RESTRICT ]

or were you just playing with things..?

	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 197B) download

view thread (6+ messages)  latest in thread

Message-ID: <20130527142352.GT8597@tamriel.snowman.net>
Permalink:  ../20130527142352.GT8597@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20130527142352.GT8597@tamriel.snowman.net

 · 

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 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: sfrost@snowman.net, maxim.boguk@gmail.com
  Subject: Re: BUG #8176: problem with the "ALTER TYPE name RENAME TO new_name [ CASCADE | RESTRICT ]" syntax
  In-Reply-To: <20130527142352.GT8597@tamriel.snowman.net>
  References: <E1Ugrng-000690-WB@wrigleys.postgresql.org> <20130527123648.GM8597@tamriel.snowman.net> <20130527142352.GT8597@tamriel.snowman.net>

* 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