Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOV4d-0001ok-Nq for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Jan 2017 19:48:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cOV4c-0000Ju-Ss for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Jan 2017 19:48:42 +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 1cOV4T-0000Ae-KI for pgsql-hackers@postgresql.org; Tue, 03 Jan 2017 19:48:33 +0000 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cOV4R-00041b-2Y for pgsql-hackers@postgresql.org; Tue, 03 Jan 2017 19:48:32 +0000 Received: by mail-io0-x230.google.com with SMTP id p42so438809095ioo.1 for ; Tue, 03 Jan 2017 11:48:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GOYMCQN78aOkHVzb8BuenS1n6rK/RKSeszQxgp+6ny8=; b=rdl0PEQJk/7YHAJh2bxn4rNOBabda11RpgCYfvpBP8drj+p1kOgVEYRODfLTnkLxv3 MR+rfbLPiZ6wtn9BCKaTuzPu9nvauey++LzfjHHzximo6YyJCVlS/7232XqeAH0dG93h cVwqW3OLPixnQ0qwRf9MnqNQg6L+JnbQrVYbG9tJbPymGoAfYL6LSmutJDZUzsOKbG71 3j+mMSRwWViSHBCeCDy9nxKclo0bu54Cz9F6AoBiJE7gf9VED5ql3wqXIrYwfYyFZ6ld pIS3XCKZMiaTodsLYkvldKKzUP3yGzTEOy1LOqBBceiRF/75U43nq98zx6SsombwwgX+ Dvzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GOYMCQN78aOkHVzb8BuenS1n6rK/RKSeszQxgp+6ny8=; b=kDRKb+xJKsiphMziMEmUbLhKycced0FyxKAlxft9jAUXroBbhxja8nCzE+4xCODZCO iLnHV/AiofwWQR1KEaXMAWNWxW6EkcFT6CSDOo9hLFwOVCF4dR5iUqB4gP2D6z7CEVXj TXrkyYlQT4iaS4B75FBn/8Oh7bGkPSixJjDpEAXtB6vL7QO06LTDDobOgdGiJ2qf2F4G aaLm6wxlKhI4qMwXmKN09wST0MMUcS+z0NcUavPQLnhSk3REyNZrxqZ2LcKoGzzH9Pix jmXY6h6yQ05MTatWhJGlhvbvTxBKB8ZlHBBQ1uekqsuNfvgjSKcRH3fUYGnTluH9srAq Q1TQ== X-Gm-Message-State: AIkVDXLHeXTh6NNJZRyf3X46eNnmq/eWbilDaGKAy/wa0DYDYiqKh4fcwJMXednOyKyzDQ== X-Received: by 10.107.149.13 with SMTP id x13mr50462488iod.57.1483472910402; Tue, 03 Jan 2017 11:48:30 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id l18sm10741642iod.8.2017.01.03.11.48.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 11:48:29 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 4A24E801A33; Tue, 3 Jan 2017 13:48:29 -0600 (CST) Date: Tue, 3 Jan 2017 13:48:29 -0600 From: Justin Pryzby To: Tom Lane Cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: ALTER TABLE .. ALTER COLUMN .. ERROR: attribute .. has wrong type Message-ID: <20170103194829.GS32031@telsasoft.com> References: <20161012152505.GD12747@telsasoft.com> <20170102225618.GA10071@telsasoft.com> <20170103003240.GM32031@telsasoft.com> <20170103165903.GP32031@telsasoft.com> <20170103185742.GQ32031@telsasoft.com> <28476.1483471956@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28476.1483471956@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) 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 On Tue, Jan 03, 2017 at 02:32:36PM -0500, Tom Lane wrote: > 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? I really meant to do \d+.. Table "public.eric_umts_rnc_utrancell_metrics" Column | Type | Modifiers | Storage | Stats target | Description ---------------------------------------------+--------------------------+-----------+----------+--------------+------------- sect_id | integer | not null | plain | 400 | start_time | timestamp with time zone | not null | plain | 400 | site_id | integer | not null | plain | 400 | interval_seconds | smallint | not null | plain | 200 | utrancell | text | not null | extended | 200 | nedn | text | not null | extended | 200 | rnc_id | integer | not null | plain | 400 | device_id | integer | not null | plain | 200 | pmcelldowntimeauto | smallint | | plain | 10 | pmcelldowntimeman | smallint | | plain | 10 | [...] Justin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers