pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [GENERAL] pg_upgrade from 9.5 to 9.6 fails with "invalid argument"
Date: Fri, 30 Sep 2016 10:13:12 -0400
Message-ID: <013ada1f-ea63-8ab1-4b21-e1e149c63c49@dunslane.net> (raw)
In-Reply-To: <13903.1475185710@sss.pgh.pa.us>
References: <nsjrbh$8li$1@blaine.gmane.org>
	<12301.1475183434@sss.pgh.pa.us>
	<13903.1475185710@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>



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 
<https://github.com/PGBuildFarm/client-code/blob/master/PGBuild/Modules/TestUpgradeXversion.pm;

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



view thread (23+ messages)  latest in thread

Message-ID: <013ada1f-ea63-8ab1-4b21-e1e149c63c49@dunslane.net>
Permalink:  ../013ada1f-ea63-8ab1-4b21-e1e149c63c49@dunslane.net/
Also on:    postgresql.org/message-id/013ada1f-ea63-8ab1-4b21-e1e149c63c49@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andrew@dunslane.net, tgl@sss.pgh.pa.us, spam_eater@gmx.net, pgsql-hackers@postgresql.org
  Subject: Re: [GENERAL] pg_upgrade from 9.5 to 9.6 fails with "invalid argument"
  In-Reply-To: <013ada1f-ea63-8ab1-4b21-e1e149c63c49@dunslane.net>
  References: <nsjrbh$8li$1@blaine.gmane.org> <12301.1475183434@sss.pgh.pa.us> <13903.1475185710@sss.pgh.pa.us> <013ada1f-ea63-8ab1-4b21-e1e149c63c49@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox