Created
August 10, 2012 17:24
-
-
Save gisborne/3315906 to your computer and use it in GitHub Desktop.
pg_dump fails could not access file "$libdir/hstore": No such file or directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pg_dump -h localhost -U webserver -p 5433 production -f backup/12-08-10.dump | |
pg_dump: SQL command failed | |
pg_dump: Error message from server: ERROR: could not access file "$libdir/hstore": No such file or directory | |
pg_dump: The command was: COPY public.event_logs (id, auth_token, text, created_at, updated_at, user_id, data, remote_creation_date) TO stdout; |
I had the same issue just now trying to run a backup on a slave server, I didn't realise the master was using hstore, so the slave didn't have it.
Try installing postgres-contrib package, that fixed this for me (as it adds the hstore capability).
Had a similar issue as well. In my case I installed postgresql 9.5 and uninstalled postgresql 9.4 afterwards, without stopping postgresql 9.4 daemon. I had to kill postgresql process manually and delete PID/LOCK files in order to start postgresql-9.5 daemon.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've had a similar problem when upgrading from 9.1 to 9.2 from postgres repository.
During a security upgrade apt were broken and i've reinstalled postgresql-9.1 whil accidentally forgoting to install postgresql-contrib-9.1 back. I've noticed that i really don't have hstore.so in my 9.1 library directory.
Installing the 9.1 contrib package solved the issue.