Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7842FB5DC33 for ; Tue, 6 Sep 2011 08:14:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 40018-04 for ; Tue, 6 Sep 2011 11:14:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from depesz.com (andy.depesz.com [88.198.47.100]) by mail.postgresql.org (Postfix) with ESMTP id 2FA8DB5DC2D for ; Tue, 6 Sep 2011 08:14:06 -0300 (ADT) Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.76) (envelope-from ) id 1R0tbK-0007An-PI; Tue, 06 Sep 2011 13:13:58 +0200 Date: Tue, 6 Sep 2011 13:13:58 +0200 From: hubert depesz lubaczewski To: Tom Lane Cc: Bruce Momjian , PostgreSQL-development Subject: Re: [GENERAL] pg_upgrade problem Message-ID: <20110906111358.GA24613@depesz.com> Reply-To: depesz@depesz.com References: <201109052104.p85L4Wx11935@momjian.us> <15262.1315257960@sss.pgh.pa.us> <20110906103222.GA20760@depesz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20110906103222.GA20760@depesz.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/247 X-Sequence-Number: 194436 Hi, Worked a bit to get the ltree problem down to smallest possible, repeatable, situation. Initial setup: 1. PostgreSQL 8.3.11, configured with: ./configure \ --prefix=/opt/pgsql-8.3.11-int \ --disable-rpath \ --without-perl \ --without-python \ --without-tcl \ --without-openssl \ --without-pam \ --without-krb5 \ --without-gssapi \ --enable-nls \ --enable-integer-datetimes \ --enable-thread-safety \ --with-libxml \ --with-libxslt \ --without-ldap Built and installed with contrib modules. 2. PostgreSQL 9.0.5 (pre), from git checkout, head of 9.0 branch. Configured with: ./configure \ --prefix=/opt/pgsql-9.0.5a-int \ --enable-debug \ --enable-cassert \ --disable-rpath \ --without-perl \ --without-python \ --without-tcl \ --without-openssl \ --without-pam \ --without-krb5 \ --without-gssapi \ --enable-nls \ --enable-integer-datetimes \ --enable-thread-safety \ --with-libxml \ --with-libxslt \ --without-ldap Now with these two in place, I can make the test: =$ mkdir /var/tmp/test =$ cd /var/tmp/test/ =$ export LD_LIBRARY_PATH=/opt/pgsql-8.3.11-int/lib/ =$ export PATH="/opt/pgsql-8.3.11-int/bin:$PATH" =$ mkdir data-8.3 =$ initdb -D data-8.3 =$ pg_ctl -D data-8.3 -l logfile-8.3 start =$ psql -d postgres -f /opt/pgsql-8.3.11-int/share/contrib/ltree.sql =$ psql -d postgres -c "create table z (x ltree)" =$ psql -d postgres -c "insert into z (x) values ('a.b')" =$ pg_ctl -D data-8.3/ stop =$ export LD_LIBRARY_PATH=/opt/pgsql-9.0.5a-int/lib/:/opt/pgsql-8.3.11-int/lib/ =$ export PATH=/opt/pgsql-9.0.5a-int/bin/:/opt/pgsql-8.3.11-int/bin/:~/bin:/usr/local/bin:/usr/bin:/bin =$ mkdir data-9.0 =$ initdb -D data-9.0/ =$ perl -pi -e 's/#port = 5432/port=7654/' data-9.0/postgresql.conf =$ pg_upgrade -v -b /opt/pgsql-8.3.11-int/bin/ -B /opt/pgsql-9.0.5a-int/bin/ -d $( pwd )/data-8.3/ -D $( pwd )/data-9.0 -k -l pg_upgrade.log -p 5432 -P 7654 =$ pg_ctl -D data-9.0 -l logfile-9.0 start =$ psql -p 7654 -d postgres -c "select * from z" WARNING: detected write past chunk end in ExecutorState 0xc500a0 WARNING: problem in alloc set ExecutorState: req size > alloc size for chunk 0xc500d8 in block 0xc4dfd0 WARNING: problem in alloc set ExecutorState: bad single-chunk 0xc500d8 in block 0xc4dfd0 WARNING: problem in alloc set ExecutorState: bogus aset link in block 0xc4dfd0, chunk 0xc500d8 WARNING: problem in alloc set ExecutorState: found inconsistent memory block 0xc4dfd0 connection to server was lost Hope it helps. Best regards, depesz