pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Kelly <jtkells@gmail.com>
To: pgsql-admin@postgresql.org
Subject: pg_dump: [archiver (db)] query failed: ERROR:  could not access file "$libdir/postgis-2.1": No such file or directory
Date: Wed, 15 Feb 2017 21:45:29 -0500
Message-ID: <51A6AFCA-D818-4574-ADD5-5F1DFFF39EAA@gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

I am having a problem with a solaris 10 postgresql 9.3 postgis 2.1.3 system.  The origin system crashed and all SW was lost. They moved the database files residing on a san to another solaris system 10  that had postgresql installed but no postgis. I don’t have permissions to install postgis nor do they have all the utilities necessary to build it.

I tried to do a pg_dump so that I can create the database on a intel platform where I have permissions.  When I do pg_dump it terminates with 

pg_dump: [archiver (db)] query failed: ERROR:  could not access file "$libdir/postgis-2.1": No such file or directory
pg_dump: [archiver (db)] query was: SELECT a.attnum, a.attname, a.atttypmod, a.attstattarget, a.attstorage, t.typstorage, a.attnotnull, a.atthasdef, a.attisdropped, a.attlen, a.attalign, a.attislocal, pg_catalog.format_type(t.oid,a.atttypmod) AS atttypname, array_to_string(a.attoptions, ', ') AS attoptions, CASE WHEN a.attcollation <> t.typcollation THEN a.attcollation ELSE 0 END AS attcollation, pg_catalog.array_to_string(ARRAY(SELECT pg_catalog.quote_ident(option_name) || ' ' || pg_catalog.quote_literal(option_value) FROM pg_catalog.pg_options_to_table(attfdwoptions) ORDER BY option_name), E',
    ') AS attfdwoptions FROM pg_catalog.pg_attribute a LEFT JOIN pg_catalog.pg_type t ON a.atttypid = t.oid WHERE a.attrelid = '6129600'::pg_catalog.oid AND a.attnum > 0::pg_catalog.int2 ORDER BY a.attrelid, a.attnum
 

all the object for postgis are in public but postgres doesn’t show the extension being installed.  How can I get around this problem so I dump this database?
Thanks

view thread (2+ messages)  latest in thread

Message-ID: <51A6AFCA-D818-4574-ADD5-5F1DFFF39EAA@gmail.com>
Permalink:  ../51A6AFCA-D818-4574-ADD5-5F1DFFF39EAA@gmail.com/
Also on:    postgresql.org/message-id/51A6AFCA-D818-4574-ADD5-5F1DFFF39EAA@gmail.com

 · 

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-admin@postgresql.org
  Cc: jtkells@gmail.com
  Subject: Re: pg_dump: [archiver (db)] query failed: ERROR:  could not access file "$libdir/postgis-2.1": No such file or directory
  In-Reply-To: <51A6AFCA-D818-4574-ADD5-5F1DFFF39EAA@gmail.com>
  References: <51A6AFCA-D818-4574-ADD5-5F1DFFF39EAA@gmail.com>

* 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