pg_dump is only backwards compatible not forward compatible. You can connect to and backup postgres databases for which the version is <= to the installed version of pg_dump.
When attempting to backup a newer version the following error is displayed:
pg_dump: server version: 12.3 (Debian 12.3-1.pgdg100+1); pg_dump version: 11.7
pg_dump: aborting because of server version mismatch
Running pg_dump --version with the current docker image shows version 11.7 meaning postgres databases with major version 12 can't be backed up.
pg_dumpis only backwards compatible not forward compatible. You can connect to and backup postgres databases for which the version is <= to the installed version ofpg_dump.When attempting to backup a newer version the following error is displayed:
Running
pg_dump --versionwith the current docker image shows version11.7meaning postgres databases with major version 12 can't be backed up.