question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support different native client versions (was: Cannot backup PostgreSQL 12.x server)

See original GitHub issue
C:\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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
pavlexandercommented, Apr 2, 2022

For windows. Go to: https://www.postgresql.org/download/windows/ Find and click on :

“Advanced users can also download a zip archive of the binaries, without the installer.”

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 (including pg_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 from bin folder into this 14 folder.

in Dbeaver > Database > Driver manager > Postgres -> "Edit ..." -> Native client -> "Add Home" button -> Add newly created directory C:\Users\XXX\AppData\Roaming\DBeaverData\drivers\clients\postgresql\win\14 image image image

in Dbeaver > Find postgres connection -> Edit -> Local client -> change value to new directory

image image

Enjoy. 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 image

2reactions
serge-ridercommented, Aug 14, 2020

Updated PG native client to version 12. It is backward compatible with 11 and 10 at least.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found