Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E8C8E9FB72F for ; Sat, 30 Jun 2007 02:36:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 37449-05-2 for ; Sat, 30 Jun 2007 02:36:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 344AC9FB474 for ; Sat, 30 Jun 2007 02:36:28 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5U5aM9Z015085; Sat, 30 Jun 2007 01:36:22 -0400 (EDT) To: Neil Conway cc: Euler Taveira de Oliveira , David Fetter , Susanne Ebrecht , pgsql-docs@postgresql.org Subject: Re: rename of a view In-reply-to: <1183181585.20942.1.camel@goldbach> References: <46839C05.7050307@miracee.de> <3450.1183040211@sss.pgh.pa.us> <20070629183219.GO7636@fetter.org> <20070630001653.GQ7636@fetter.org> <4685D8C8.2070808@timbira.com> <12776.1183177571@sss.pgh.pa.us> <1183181585.20942.1.camel@goldbach> Comments: In-reply-to Neil Conway message dated "Fri, 29 Jun 2007 22:33:05 -0700" Date: Sat, 30 Jun 2007 01:36:22 -0400 Message-ID: <15084.1183181782@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/35 X-Sequence-Number: 4324 Neil Conway writes: > On Sat, 2007-30-06 at 00:26 -0400, Tom Lane wrote: >> There is exactly 0 chance of that happening, because it's always worked >> historically. > Agreed, but I think the patch should disallow ALTER VIEW ... RENAME on a > non-view, and ALTER SEQUENCE ... RENAME on a non-sequence. No objection to that; it'd square with our treatment of TYPE and DOMAIN commands. What I'm wondering though is whether the whole patch has a reason to live at all, as compared to documenting someplace more prominent than now that ALTER TABLE works on views & sequences. regards, tom lane