Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UgwfY-0005NS-4j for pgsql-bugs@arkaria.postgresql.org; Mon, 27 May 2013 12:36:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UgwfX-0004N2-IZ for pgsql-bugs@arkaria.postgresql.org; Mon, 27 May 2013 12:36:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UgwfW-0004Mx-Vq for pgsql-bugs@postgresql.org; Mon, 27 May 2013 12:36:55 +0000 Received: from cl-262.qas-01.us.sixxs.net ([2001:4830:1600:105::2] helo=tamriel.snowman.net) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UgwfS-0000gW-Ex for pgsql-bugs@postgresql.org; Mon, 27 May 2013 12:36:54 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 159BA222E7; Mon, 27 May 2013 08:36:49 -0400 (EDT) Date: Mon, 27 May 2013 08:36:48 -0400 From: Stephen Frost 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 Message-ID: <20130527123648.GM8597@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Aaj1jBvBEV7KRjLi" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.2.0-4-amd64 (x86_64) X-Uptime: 08:33:08 up 1 day, 18:06, 3 users, load average: 0.12, 0.14, 0.08 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --Aaj1jBvBEV7KRjLi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Maxim, * 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. > Test case: Thanks for this. I'm working on fixing this and will also add regression tests to, hopefully, avoid this getting broken in the future. Thanks again, Stephen --Aaj1jBvBEV7KRjLi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlGjU2AACgkQrzgMPqB3kihQCQCeJ3vG2fUTpSjnqI2UqhkoWcEw w5EAn2gZwXtNlXsrhzXkPzcn6/vKPzGw =4Pke -----END PGP SIGNATURE----- --Aaj1jBvBEV7KRjLi--