Skip to content

Make the custom format the default for PostgreSQL backups - #44

Merged
necessarylion merged 1 commit into
mainfrom
pg-custom-default
Nov 8, 2026
Merged

necessarylion merged 1 commit into
mainfrom
pg-custom-default

Conversation

@necessarylion

Copy link
Copy Markdown
Owner

The PostgreSQL backup dialog started on plain SQL (.sql).

A custom file (.dump) is smaller, and pg_restore loads it much faster. So it is a better default.

  • The dialog now starts on "Custom (.dump, for pg_restore)".
  • It goes back to custom each time the dialog opens.
  • Plain SQL can still be picked.
  • The default is the constant PG_BACKUP_CUSTOM_DEFAULT in src/constants/pgTools.ts.
  • Session.backup still uses plain SQL when no options are given. MySQL and SQLite backups use that.

Checks: lint, typecheck and bun test (405 pass) are clean.

The backup dialog started on plain SQL. A custom .dump file is smaller
and pg_restore loads it much faster. The dialog now starts on custom
each time it opens. Plain SQL can still be picked.
@necessarylion
necessarylion merged commit e9491b3 into main Nov 8, 2026
4 checks passed
@necessarylion
necessarylion deleted the pg-custom-default branch November 8, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant