I use pip3 install pgadmin4==4.30
to install pgadmin
in my ubuntu
. And I want to backup my remote server data by Tools-Backup in pgadmin
, which is equal to the following command.
/usr/bin/pg_dump --file "~/demo.backup" --host "127.0.0.1" --port "42885" --username "postgres"....
However there is an error says:pg_dump: sever version:11.7; pg_dump version: 10.3(Ubuntu-10.3-1)
. One thing that puzzles me is I don't have version 11.7
installed at all. Here is the output of ls -la /usr/bin/pg_dump
0 lrwxrwxrwx 1 root root 34 Mar 2 18:05 /usr/bin/pg_dump -> /usr/lib/postgresql/10/bin/pg_dump
And there is only one version(10
) in /usr/lib/postgresql
folder. Anyone can tell me how I can fix this? I have tried every solution of this and neither of them worked out.