Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpyZ0-0006bt-PD for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Sep 2016 14:13:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bpyZ0-0001kE-C8 for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Sep 2016 14:13:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bpyYz-0001k5-N6 for pgsql-hackers@postgresql.org; Fri, 30 Sep 2016 14:13:21 +0000 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bpyYw-0003cl-Dj for pgsql-hackers@postgresql.org; Fri, 30 Sep 2016 14:13:21 +0000 Received: from mfilter22-d.gandi.net (mfilter22-d.gandi.net [217.70.178.150]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 62586A8107; Fri, 30 Sep 2016 16:13:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter22-d.gandi.net Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter22-d.gandi.net (mfilter22-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id G3LDzJovFtiB; Fri, 30 Sep 2016 16:13:14 +0200 (CEST) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 72010A80EE; Fri, 30 Sep 2016 16:13:13 +0200 (CEST) Subject: Re: [GENERAL] pg_upgrade from 9.5 to 9.6 fails with "invalid argument" To: Tom Lane , Thomas Kellerer References: <12301.1475183434@sss.pgh.pa.us> <13903.1475185710@sss.pgh.pa.us> Cc: pgsql-hackers@postgresql.org From: Andrew Dunstan Message-ID: <013ada1f-ea63-8ab1-4b21-e1e149c63c49@dunslane.net> Date: Fri, 30 Sep 2016 10:13:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <13903.1475185710@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.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 On 09/29/2016 05:48 PM, Tom Lane wrote: > We might've caught these things earlier if the buildfarm testing > included cross-version upgrades, but of course that requires a > lot of test infrastructure that's not there ... > > I have done quite a bit of work on this - see This actually runs on crake, and it has found problems in the past which we've fixed. However, it requires quite a deal of disk space (4GB or so), and the results are not stable, which is why I haven't enabled it. What I am thinking of doing is making the diff tests fuzzy - if, say, we don't get a diff of more than 2000 lines we won't consider it a failure. Among this module's advantages is that it tests upgrading quite a bit more than the standard pg_upgrade check - all the buildfarm's regression databases, not just the one created by "make check". For example, currently it is failing to upgrade from 9.6 to HEAD with this error: Could not load library "$libdir/hstore_plpython2" ERROR: could not load library "/home/bf/bfr/root/upgrade/HEAD/inst/lib/postgresql/hstore_plpython2.so": /home/bf/bfr/root/upgrade/HEAD/inst/lib/postgresql/hstore_plpython2.so: undefined symbol: _Py_NoneStruct I need to look into that. cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers