Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfMjM-0001ZW-7m for pgsql-admin@arkaria.postgresql.org; Wed, 30 Apr 2014 05:06:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WfMjL-000057-Ke for pgsql-admin@arkaria.postgresql.org; Wed, 30 Apr 2014 05:06:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfMjK-000051-Sv for pgsql-admin@postgresql.org; Wed, 30 Apr 2014 05:06:50 +0000 Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfMjG-0005lj-PP for pgsql-admin@postgresql.org; Wed, 30 Apr 2014 05:06:50 +0000 Received: by mail-pd0-f180.google.com with SMTP id x10so1157687pdj.39 for ; Tue, 29 Apr 2014 22:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:message-id:subject:mime-version:content-type; bh=oI+mcbOhuqRL9lvWMaxLUe5xZg8ABbVte2JM82CMx8k=; b=SzXObGNpjk9vW/+AQlfHvDr2Gk4VRWAJdt/wCoMhGoyBI8PKr7LN5L20o3Q/uv5RaD F2SddTeZ2qEpzu8C2Sryi2r0lHXTc40M3vNB7Gdg/uiN+iCIgi1JKIMX+taLnR8/qzGS Oasyok6eWRMUR0il/PwufiF6OAjaCVgCQf5vs7gVNa1gDYxkeS5RPo0/v2hF7xVY+Lza diUk0MDpdWqoQ7w427vnnxmecZPLH22zUaYJVBsK5jrwBfkStU2dELx3ecg7KMUbpoAO 0GG9pp7DV5tXXTx1D263fDkzsUg/yjHxJlIQKv3vBsBb8cDzodVRXFB5LOOteEXgSMvy I76w== X-Received: by 10.66.250.202 with SMTP id ze10mr4195829pac.153.1398834403247; Tue, 29 Apr 2014 22:06:43 -0700 (PDT) Received: from [192.168.42.90] (173-228-107-152.dsl.static.sonic.net. [173.228.107.152]) by mx.google.com with ESMTPSA id yj6sm126654832pab.19.2014.04.29.22.06.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 29 Apr 2014 22:06:42 -0700 (PDT) Date: Tue, 29 Apr 2014 22:06:40 -0700 From: Peter Bengtsson To: pgsql-admin@postgresql.org Message-ID: <63B458542C454ED3A5F58A2323EC9E29@gmail.com> Subject: Missing loadable libraries when running pg_upgrade 9.2 -> 9.3 due to json_enhancements X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="536084e0_3804823e_1f4e" X-Pg-Spam-Score: -1.9 (-) 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 --536084e0_3804823e_1f4e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline In on OSX and I upgraded homebrew which upgraded me to postgres 9.3. =20 Now postgres won=E2=80=99t start because the old database is no longer co= mpatible. =20 I found some promising instructions here: http://blog.55minutes.com/2013/09/postgresql-93-brew-upgrade/ But I get stuck on running this: pg=5Fupgrade -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 ( output here: http://www.peterbe.com/pg=5Fupgrade.log log here: http://www.peterbe.com/pg=5Fupgrade=5Fserver.log ) The content of loadable=5Flibraries.txt is this:: Could not load library =22=24libdir/json=5Fenhancements=22 ERROR: could not access file =22=24libdir/json=5Fenhancements=22: No suc= h file or directory Yes, I had json=5Fenhancement installed when I was using postgres 9.2. Bu= t I don=E2=80=99t need that any more in 9.3 because json=5Fenhancements w= as a backport for 9.2. =20 The file is still there: /usr/local/Cellar/postgresql/9.2.2/lib/json=5Fen= hancements.so So, I can=E2=80=99t upgrade because I don=E2=80=99t have json=5Fenhanceme= nts installed in 9.3. Which is not possible. =20 And I can=E2=80=99t upgrade by deleting ./lib/json=5Fenhancements.so ./sh= are/postgresql/extension/json=5Fenhancements--1.0.0.sql and ./share/postg= resql/extension/json=5Fenhancements.control How to get out of this pickle=3F By the way, the database that I think I have it installed on is a databas= e I can do without. But I can=E2=80=99t simply =60dropdb a=5Fdatabase=5Fw= ith=5Fjson=5Fenhancements=5Finstalled=60 because dropdb doesn=E2=80=99t w= ork any more of course. =20 -- =20 Peter Bengtsson home www.peterbe.com work www.mozilla.org fun aroundtheworldgame.com --536084e0_3804823e_1f4e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
In on OSX and I upgraded homebrew which upgraded me t= o postgres 9.3. 
Now postgres won=E2=80=99t start because the o= ld database is no longer compatible. 
I found some promisi= ng instructions here:

But I get stuck on= running this:
pg=5Fupgrade -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

(
output here: http://www.peterbe.com/pg=5Fupgrade.log
log= here: http://www.peterbe.com/pg=5Fupgrade=5Fserver.log
)<= /div>

The content of loadable=5Flibraries.txt is this:= :
Could not load library =22=24libdir/json=5Fenhancements=22=
ERROR:  could not access file =22=24libdir/json=5Fenhance= ments=22: No such file or directory

Yes, I had json=5Fenhancement in= stalled when I was using postgres 9.2. But I don=E2=80=99t need that any = more in 9.3 because json=5Fenhancements was a backport for 9.2. 
The file is still there: /usr/local/Cellar/postgresql/9.2.2/lib/js= on=5Fenhancements.so

So, I can=E2=80=99t upgrade= because I don=E2=80=99t have json=5Fenhancements installed in 9.3. Which= is not possible. 
And I can=E2=80=99t upgrade by deleting= ./lib/json=5Fenhancements.so ./share/postgresql/extension/json=5Fen= hancements--1.0.0.sql and ./share/postgresql/extension/json=5Fenhanc= ements.control

How to get out of this pickle=3F<= /div>

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 =60= dropdb a=5Fdatabase=5Fwith=5Fjson=5Fenhancements=5Finstalled=60 because d= ropdb doesn=E2=80=99t work any more of course. 

=


-- 
Peter Bengtsson
home www.peterbe.com
work www.mozilla.org
fun = aroundtheworldgame.com

--536084e0_3804823e_1f4e--