Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server mismatch error in postgresql

Tags:

postgresql

I have to backup a database using remote desktop connection in PGAdmin.I have installed three versions in my client machine 9.1,9.2,9.3.In server i am using 9.3.While trying to backup its showing server version mismatch error.Eventhough i have installed 9.3 version,dont know why its not working.

D:\Program Files\PostgreSQL\9.1\bin\pg_dump.exe --host 192.99.197.25 --port 5432 --username "postgres" --no-password  --format custom --blobs --verbose --file "D:\V\QuartzBee dbbackup\QuartzBee_19_3_15.backup" "QuartzBee"
pg_dump: server version: 9.3.6; pg_dump version: 9.1.3
pg_dump: aborting because of server version mismatch
pg_dump: *** aborted because of error

Process returned exit code 1.

how can i change the pg_dump from 9.1 and set 9.3 as default.

like image 877
Priya Avatar asked Mar 24 '15 10:03

Priya


People also ask

What is Pg_dump version?

pg_dump is a utility for backing up a PostgreSQL database. It makes consistent backups even if the database is being used concurrently. pg_dump does not block other users accessing the database (readers or writers). pg_dump only dumps a single database.


3 Answers

In pgAdmin, navigate to File -> Options, and under Browser -> Binary paths, change PG bin path to D:\Program Files\PostgreSQL\9.1\bin. That should make it use the 9.3 executables.

like image 192
Petter Avatar answered Oct 08 '22 14:10

Petter


You can change the binaries of pg_dump. OR You can simply ignore server/utility version mismatches. Please navigate to File > Options. Then, Browser > Binary Paths. Click on the checkbox with label ignore server/utility version mismatches Refresh you database tree. It will work. Thanks

enter image description here

like image 42
shery089 Avatar answered Oct 08 '22 14:10

shery089


In pgAdmin 4, this navigation route is now:

File -> Preferences -> Paths -> Binary Paths

like image 27
dsturbid Avatar answered Oct 08 '22 14:10

dsturbid