Repository navigation
Always list PostgreSQL 18 to 12 in the backup dialog, with an install guide - #42
Merged
Merged
Conversation
…install a missing version The backup and restore dialog listed only the pg_dump and pg_restore versions found on this computer. Now it always lists PostgreSQL 18 to 12. A missing version is marked "not installed". When the user picks it, the button is off and a short install guide for this platform shows, with a Copy button and a Check again button. The app does not download or install any tool. Also: - An installed version shows its full version, like PostgreSQL 17.6. - The "not found" error now points to the guide. - A slow tool list from an older open of the dialog is dropped. - A cancelled restore keeps its status when the reload of the tables fails.
- Show brew install only for PostgreSQL 15 to 18. Homebrew has disabled the older ones. - Find tools from the macOS EDB installer in /Library/PostgreSQL. - open_link opens only the guide links, and waits for the opener so no process is left. - The Linux guide says old versions may need the PGDG archive repository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The PostgreSQL backup and restore dialog listed only the pg_dump / pg_restore versions found on this computer. A user with no matching version did not see what to install.
What changed
PG_TOOL_VERSIONS). Another installed version, like 11, is listed too.PgInstallGuide):brew install postgresql@N, plus Postgres.app and the EDB installer if Homebrew no longer has it.sudo apt install postgresql-client-N(apt repo link) andsudo dnf install postgresqlN(PGDG link).open_linkcommand. It opens onlyhttps://links, withopen,xdg-openorexplorer.Fixes from the review of #41
PgToolLoader).Checks
bun run lint,bun run typecheck,bun test(400 pass)cargo clippy --all-targets(no warnings),cargo test,cargo fmtcargo test --test servicewith Docker PostgreSQL 17: pass. It found pg_dump 17 (libpq@17) and 15 (/opt/homebrew/opt/postgresql@15/bin), so the Homebrew path afterbrew install postgresql@Nis found.