Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqOct-00050U-A5 for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Oct 2016 18:03:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bqOcs-0004uc-9V for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Oct 2016 18:03:06 +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 1bqObU-0003Dw-MJ for pgsql-hackers@postgresql.org; Sat, 01 Oct 2016 18:01:40 +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 1bqObS-0001t7-3K for pgsql-hackers@postgresql.org; Sat, 01 Oct 2016 18:01:39 +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 u91I1V0D019486; Sat, 1 Oct 2016 14:01:31 -0400 From: Tom Lane To: Andrew Dunstan cc: Thomas Kellerer , pgsql-hackers@postgresql.org Subject: Re: [GENERAL] pg_upgrade from 9.5 to 9.6 fails with "invalid argument" In-reply-to: <2491af5c-c9bf-a07d-7d42-3ef442db14e4@dunslane.net> References: <12301.1475183434@sss.pgh.pa.us> <13903.1475185710@sss.pgh.pa.us> <013ada1f-ea63-8ab1-4b21-e1e149c63c49@dunslane.net> <20153.1475245541@sss.pgh.pa.us> <5669acd9-efdc-2a0f-afea-10ba6003a050@dunslane.net> <28827.1475252675@sss.pgh.pa.us> <2491af5c-c9bf-a07d-7d42-3ef442db14e4@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Fri, 30 Sep 2016 12:48:24 -0400" Date: Sat, 01 Oct 2016 14:01:31 -0400 Message-ID: <19485.1475344891@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) 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 Andrew Dunstan writes: > On 09/30/2016 12:24 PM, Tom Lane wrote: >> Seems to be some additional prep work needed somewhere ... >> No upgrade_install_root at /home/bfarm/bf-scripts/build-farm-4.17/PGBuild/Modules/TestUpgradeXversion.pm line 51. > Oh sorry, you also need an entry for that in the config file. Mine has: > upgrade_install_root => '/home/bf/bfr/root/upgrade', Yesterday's runs of prairiedog had this turned on. I'm not sure how to interpret the output (because there isn't any, ahem), but it does not appear that the test detected anything wrong. I was able to demonstrate the problem, and that my patch of yesterday fixed it, by building a table in 9.5 that was all-visible, deleting a few widely scattered tuples, and then pg_upgrading. It wasn't that easy to exhibit a query failure, though --- my first attempt failed because I'd done an index-only scan in 9.5 before upgrading, and that had the side effect of marking the index tuples dead, making the same query in HEAD produce correct answers despite having invalid vismap state. If we wanted a regression test, it seems like we would have to build a custom test specifically designed to detect this type of problem, and I'm not sure it's worth it. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers