Support different native client versions (was: Cannot backup PostgreSQL 12.x server)
See original GitHub issueC:\Users\pasha\AppData\Roaming\DBeaverData\drivers\clients\postgresql\win\pg_dump.exe --verbose --host=localhost --port=5432 --username=postgres --format=p -n "timetable" timetable
Task 'PostgreSQL dump' started at Tue Mar 03 17:27:47 CET 2020
pg_dump: server version: 12.1; pg_dump version: 11.2
pg_dump: aborting because of server version mismatch
Task 'PostgreSQL dump' finished at Tue Mar 03 17:27:47 CET 2020
2020-03-03 17:27:48.060 - IO error: Process failed (exit code = 1). See error log.
2020-03-03 17:27:48.060 - java.io.IOException: Process failed (exit code = 1). See error log.
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.executeProcess(AbstractNativeToolHandler.java:182)
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.doExecute(AbstractNativeToolHandler.java:237)
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.lambda$0(AbstractNativeToolHandler.java:52)
at org.jkiss.dbeaver.runtime.RunnableContextDelegate.lambda$0(RunnableContextDelegate.java:39)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Not able to backup of postgres DB from DBeaver - Server Fault
Then in DBeaver, go to Database->Driver Manager, choose "PostgreSQL" then "Edit" then navigate to the "Native Client" tab, then "Add Home" ...
Read more >Documentation: 15: pg_dump - PostgreSQL
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...
Read more >Ubuntu Dbeaver backup database [closed] - Stack Overflow
I have Dbeaver installed and I have a connection to a PostgreSQL database on a remote server. I'd like to export this database...
Read more >Database backup/restore - DBeaver Documentation
The native client is a set of binaries (different for different OSes) which will be executed by DBeaver to process an actual backup/restore....
Read more >Database settings - GitLab Docs
Thus you have two options for database servers to use with Omnibus GitLab: ... The default PostgreSQL version is set to 12.x, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For windows. Go to: https://www.postgresql.org/download/windows/ Find and click on :
Unzip and go to location similar to:
C:\Users\XXX\Downloads\postgresql-14.2-2-windows-x64-binaries\pgsql\bin
. This will get you the latest version of postgres client and relevant utils (includingpg_dump
).In separate window open:
C:\Users\XXX\AppData\Roaming\DBeaverData\drivers\clients\postgresql\win
In my case I had folder “13”. Create folder “14”. Copy contents frombin
folder into this14
folder.in Dbeaver > Database > Driver manager > Postgres -> "Edit ..." -> Native client -> "Add Home" button ->
Add newly created directoryC:\Users\XXX\AppData\Roaming\DBeaverData\drivers\clients\postgresql\win\14
in Dbeaver > Find postgres connection -> Edit -> Local client ->
change value to new directoryEnjoy. No more errors when backing up data… Similarly you could have multiple postgres clients installed and you could use each for different connections… But someone said they are backwards compatible so there is that.
p.s. I also updated driver version to latest maybe it’s also required…
in Dbeaver > Database > Driver manager > Postgres -> "Edit ..." -> Libraries -> "Download/Update" button
Updated PG native client to version 12. It is backward compatible with 11 and 10 at least.