Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id C9DF341D6CE for ; Sun, 11 Mar 2012 19:16:12 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S6r3k-0004eO-0c for pgsql-bugs@postgresql.org; Sun, 11 Mar 2012 22:16:12 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q2BMFvfS021605; Sun, 11 Mar 2012 18:15:58 -0400 (EDT) To: Bill MacArthur cc: pgsql-bugs@postgresql.org Subject: Re: table row type and query-specified row type do not match In-reply-to: <7576.1331241951@sss.pgh.pa.us> References: <4F590B2A.1030709@dhs-club.com> <7576.1331241951@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 08 Mar 2012 16:25:51 -0500" Date: Sun, 11 Mar 2012 18:15:57 -0400 Message-ID: <21604.1331504157@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/80 X-Sequence-Number: 32641 I wrote: > What I would have expected to happen is for the ALTER TABLE to throw an > error telling you it couldn't cope with updating the rule, and that > you'd need to fix that manually. There is such a test involving views; > not sure why it's not catching this rule. FYI, I've committed a patch that will cause 9.2 and later releases to report an error for this case. regards, tom lane