Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOUqX-0001D0-I6 for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Jan 2017 19:34:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cOUqX-0003rG-5F for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Jan 2017 19:34:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cOUp7-00025E-D0 for pgsql-hackers@postgresql.org; Tue, 03 Jan 2017 19:32:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cOUp4-0003fX-F8 for pgsql-hackers@postgresql.org; Tue, 03 Jan 2017 19:32:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v03JWa0d028477; Tue, 3 Jan 2017 14:32:36 -0500 From: Tom Lane To: Justin Pryzby cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: ALTER TABLE .. ALTER COLUMN .. ERROR: attribute .. has wrong type In-reply-to: <20170103185742.GQ32031@telsasoft.com> References: <20161012152505.GD12747@telsasoft.com> <20170102225618.GA10071@telsasoft.com> <20170103003240.GM32031@telsasoft.com> <20170103165903.GP32031@telsasoft.com> <20170103185742.GQ32031@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Tue, 03 Jan 2017 12:57:42 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28475.1483471956.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 03 Jan 2017 14:32:36 -0500 Message-ID: <28476.1483471956@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Justin Pryzby writes: >>>> I can cause the error at will on the existing table, That's good news, at least. 1. Please trigger it with "\set VERBOSITY verbose" enabled, so we can see the exact source location --- there are a couple of instances of that text. 2. Even better would be a stack trace for the call to errfinish, https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_b= ackend 3. It's pretty hard to see how you'd reach any of these places for an ALTER COLUMN TYPE on a simple table. Has the table got rules, triggers, default values? Could we see "\d+" output for it? regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers