Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Postgres 15 backup support #55

Open
sseekamp opened this issue May 14, 2023 · 1 comment
Open

Feature: Postgres 15 backup support #55

sseekamp opened this issue May 14, 2023 · 1 comment

Comments

@sseekamp
Copy link

Postgres 15 changed the backup function names which causes the snapshotting function to fail with:

ERROR:  function pg_start_backup(unknown) does not exist
LINE 1: SELECT PG_START_BACKUP('zfs-auto-snapshot');
              ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
ERROR:  function pg_stop_backup() does not exist
LINE 1: SELECT PG_STOP_BACKUP();
              ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

in:

when 'postgresql'
sql_pre_query = "SELECT PG_START_BACKUP('zfs-auto-snapshot');"
sql_post_query = "SELECT PG_STOP_BACKUP();"

In the docs for Postgres 15
E.4.2. Migration to Version 15
Remove long-deprecated exclusive backup mode (David Steele, Nathan Bossart)

If the database server stops abruptly while in this mode, the server could fail to start. The non-exclusive backup mode is considered superior for all purposes. Functions pg_start_backup()/pg_stop_backup() have been renamed to pg_backup_start()/pg_backup_stop(), and the functions pg_backup_start_time() and pg_is_in_backup() have been removed.

@dsampson01
Copy link

I'm running into this same issue. Would be nice to have PGSQL v15 support!

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

No branches or pull requests

2 participants