Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfMwA-00020G-Q5 for pgsql-admin@arkaria.postgresql.org; Wed, 30 Apr 2014 05:20:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WfMwA-0002LZ-9e for pgsql-admin@arkaria.postgresql.org; Wed, 30 Apr 2014 05:20:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfMw8-0002Jy-Kb for pgsql-admin@postgresql.org; Wed, 30 Apr 2014 05:20:04 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfMw5-0005xM-5k for pgsql-admin@postgresql.org; Wed, 30 Apr 2014 05:20:04 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WfMw3-0002SD-1Z for pgsql-admin@postgresql.org; Tue, 29 Apr 2014 22:19:59 -0700 Date: Tue, 29 Apr 2014 22:19:59 -0700 (PDT) From: David G Johnston To: pgsql-admin@postgresql.org Message-ID: <1398835199020-5801938.post@n5.nabble.com> In-Reply-To: <63B458542C454ED3A5F58A2323EC9E29@gmail.com> References: <63B458542C454ED3A5F58A2323EC9E29@gmail.com> Subject: Re: Missing loadable libraries when running pg_upgrade 9.2 -> 9.3 due to json_enhancements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Peter Bengtsson wrote > In on OSX and I upgraded homebrew which upgraded me to postgres 9.3.=20= =20=20 > Now postgres won=E2=80=99t start because the old database is no longer co= mpatible.=20=20 > I found some promising instructions here: > http://blog.55minutes.com/2013/09/postgresql-93-brew-upgrade/ >=20 > But I get stuck on running this: > pg_upgrade -d /usr/local/var/postgres -D /usr/local/var/postgres9.3 -b > /usr/local/Cellar/postgresql/9.2.2/bin/ -B > /usr/local/Cellar/postgresql/9.3.4/bin/ -v >=20 > ( > output here: http://www.peterbe.com/pg_upgrade.log > log here: http://www.peterbe.com/pg_upgrade_server.log > ) >=20 > The content of loadable_libraries.txt is this:: > Could not load library "$libdir/json_enhancements" > ERROR: could not access file "$libdir/json_enhancements": No such file or > directory >=20 >=20 > Yes, I had json_enhancement installed when I was using postgres 9.2. But I > don=E2=80=99t need that any more in 9.3 because json_enhancements was a b= ackport > for 9.2.=20=20 > The file is still there: > /usr/local/Cellar/postgresql/9.2.2/lib/json_enhancements.so >=20 > So, I can=E2=80=99t upgrade because I don=E2=80=99t have json_enhancement= s installed in > 9.3. Which is not possible.=20=20 > And I can=E2=80=99t upgrade by deleting ./lib/json_enhancements.so > ./share/postgresql/extension/json_enhancements--1.0.0.sql and > ./share/postgresql/extension/json_enhancements.control >=20 > How to get out of this pickle? >=20 > By the way, the database that I think I have it installed on is a database > I can do without. But I can=E2=80=99t simply `dropdb > a_database_with_json_enhancements_installed` because dropdb doesn=E2=80= =99t work > any more of course.=20=20 http://www.pgxn.org/dist/json_enhancements/doc/json_enhancements.html "This module might make using pg_upgrade difficult or even impossible. This use has not been tested. IF YOU ARE PLANNING TO USE pg_upgrade THEN DO NOT USE THIS EXTENSION WITHOUT UPGRADE TESTING. If you ignore this warning and it breaks you get to keep all the pieces." Doesn't say anything about how to go about a dump/restore style upgrade...maybe rebuild the schema in 9.3 manually (more-or-less) then do a data-only dump/restore? Seems you, in theory, should be able to drop the database and extension from 9.2 then re-do the upgrade without them. Good Luck... David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Missi= ng-loadable-libraries-when-running-pg-upgrade-9-2-9-3-due-to-json-enhanceme= nts-tp5801937p5801938.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin