Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1EzV-0000wJ-Vl for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Oct 2016 15:59:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c1EzV-0004qa-IO for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Oct 2016 15:59:17 +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 1c1Eyq-0003K1-Oh for pgsql-bugs@postgresql.org; Mon, 31 Oct 2016 15:58:36 +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 1c1Eyo-0004RF-C5 for pgsql-bugs@postgresql.org; Mon, 31 Oct 2016 15:58:35 +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 u9VFwVdN018458; Mon, 31 Oct 2016 11:58:32 -0400 From: Tom Lane To: boskowski+coreybernal@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14406: Statement fails after upgrade to 9.6.1 In-reply-to: <20161031124240.15993.40927@wrigleys.postgresql.org> References: <20161031124240.15993.40927@wrigleys.postgresql.org> Comments: In-reply-to boskowski+coreybernal@gmail.com message dated "Mon, 31 Oct 2016 12:42:40 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18456.1477929511.1@sss.pgh.pa.us> Date: Mon, 31 Oct 2016 11:58:31 -0400 Message-ID: <18457.1477929511@sss.pgh.pa.us> X-Pg-Spam-Score: -4.6 (----) 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 boskowski+coreybernal@gmail.com writes: > After upgrading from 9.5.4 to 9.6.1 using pg_upgrade with links an UPDATE > (prepared) statement that previously worked started raising > ERROR: table row type and query-specified row type do not match > DETAIL: Query provides a value for a dropped column at ordinal position > 19. > I managed to solve this by creating an identical table, populating with > INSERT/SELECT and swapping the tables by renaming them, all in one > transaction. > Please let me know what detail information can be helpful to you. Without a self-contained test case, we're not going to be able to do much with this report. Presumably a test case would look something like "create a table like this under 9.5; drop some columns in it like this; pg_upgrade to 9.6; execute this query". But nobody's going to try to fill in all those details by guessing. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs