Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DF171B5DBD1 for ; Tue, 6 Sep 2011 17:37:02 -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 95451-02 for ; Tue, 6 Sep 2011 20:36:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id EDF3EB5DBCB for ; Tue, 6 Sep 2011 17:36:55 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p86KaZsc020830; Tue, 6 Sep 2011 16:36:35 -0400 (EDT) To: depesz@depesz.com cc: Bruce Momjian , PostgreSQL-development Subject: Re: [GENERAL] pg_upgrade problem In-reply-to: <20110906111358.GA24613@depesz.com> References: <201109052104.p85L4Wx11935@momjian.us> <15262.1315257960@sss.pgh.pa.us> <20110906103222.GA20760@depesz.com> <20110906111358.GA24613@depesz.com> Comments: In-reply-to hubert depesz lubaczewski message dated "Tue, 06 Sep 2011 13:13:58 +0200" Date: Tue, 06 Sep 2011 16:36:35 -0400 Message-ID: <20829.1315341395@sss.pgh.pa.us> From: Tom Lane 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/294 X-Sequence-Number: 194483 hubert depesz lubaczewski writes: > Worked a bit to get the ltree problem down to smallest possible, repeatable, situation. I looked at this again and verified that indeed, commit 8eee65c996048848c20f6637c1d12b319a4ce244 introduced an incompatible change into the on-disk format of ltree columns: it widened ltree_level.len, which is one component of an ltree on disk. So the crash is hardly surprising. I think that the only thing pg_upgrade could do about it is refuse to upgrade when ltree columns are present in an 8.3 database. I'm not sure though how you'd identify contrib/ltree versus some random user-defined type named ltree. regards, tom lane