I have uninstalled PostgreSQL 10 and added postgresql 14. But now I get the error when trying to backup:
pg_dump: error: server version: 14.2; pg_dump version: 13.4
pg_dump: error: aborting because of server version mismatch
The weird part is cmd shows the correct version:
pg_dump --version
pg_dump (PostgreSQL) 14.2
I have added the path system variable C:\Program Files\PostgreSQL\14\bin
Where did I go wrong? What else needs to be set?
Related
I've just upgraded my Heroku app's PostgreSQL to version 12.
I'm currently having an issue with Heroku's pg:pull, where the extension/library from the server's pg_dump is apparently an older version:
pg_restore: error: could not execute query: ERROR: incompatible library "/usr/local/lib/postgresql/btree_gin.so": version mismatch
DETAIL: Server is version 10, library is version 12.
Command was: CREATE EXTENSION IF NOT EXISTS btree_gin WITH SCHEMA public;
The command I run is: heroku pg:pull ${SERVER_DB} ${DEV_DB} -a ${APP}
I have attempted ALTER EXTENSION btree_gin UPDATE; but it wasn't any help.
Any ideas?
I didn't realize that this error was concerning my local machine's PostgreSQL server version—not the server on Heroku.
Doing brew postgresql-upgrade-database would resolve this by upgrading the server version.
I ended up just deleting my existing local database and reinstalling PostgreSQL instead because running brew postgresql-upgrade-database involves copying entire tables; I didn't have enough space in local storage.
I'm trying to execute a ./run sentence, but when I try to execute it I get this error:
ERROR: could not open extension control file "C:/Program Files/PostgreSQL/9.4/share/extension/plv8.control": No such file or directory
Is that problem related to the version of the postgresql?
Make sure your PLV8 version is the correct version for your Postgres DB.
if youre using PSQL 9.4, then you need the plv8 files for PostgreSQL 9.4
I know for Postgresql 9.5 you can find them here:
http://www.postgresonline.com/journal/archives/360-PLV8-binaries-for-PostgreSQL-9.5-windows-both-32-bit-and-64-bit.html
and for Postgres 9.4 you can find them here:
http://www.postgresonline.com/journal/archives/341-PLV8-binaries-for-PostgreSQL-9.4-windows-both-32-bit-and-64-bit.html
I am getting
pg_dump: server version: 9.3.0; pg_dump version: 9.1.4
pg_dump: aborting because of server version mismatch
In my .bash_profile I have
export PATH=/Applications/Postgres.app/Contents/MacOS/bin:$PATH
In my .profile I have
:5432:*:postgres:root
PATH="/Applications/Postgres.app/Contents/Versions/9.3/bin:$PATH"
How do I force postgres to make a simple backup?
I downloaded a new version of postgres 9.3.2 and now it is working. Not sure why, but better than 9.3.0.
So after install OSX Mavericks, i'm trying to start mysql installed by homebrew
the error when i'm trying to do mysql -u root or mysqld
mysql: Can't read dir of '/usr/local/etc/my.cnf.d' (Errcode: 20)
Fatal error in defaults handling. Program aborted
I'm researching for a lot of stacks, but i didn't find any error like my, someone can help?
I downloaded my latest backup file from heroku to my local drive using this command:
$ heroku pgbackups:capture
$ curl -o latest.dump `heroku pgbackups:url`
Then I tried to restore with:
$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump
And I got this error message:
pg_restore: [archiver] unsupported version (1.12) in file header
After some googling, I found out that the problem is version mismatch. Heroku postgres version is 9.0.13, but my local dev database is version 8.0.
I'm a little hesitant to upgrade my local version to 9.0 because I had trouble with postgres installation before. Is there a simpler way to download data from heroku?
I know you don't want to, but I think what you really should do is upgrade your local postgres. Especially if you do any local development. You really want parity between your two environments. There are easier ways to install Postgres on some platforms - for example Postgres.app on OS X.