~ballot/postgresql-charm/+git/postgresql-charm:issue_271

Last commit made on 2023-11-07
Get this branch:
git clone -b issue_271 https://git.launchpad.net/~ballot/postgresql-charm/+git/postgresql-charm
Only Benjamin Allot can upload to this branch. If you are Benjamin Allot please log in for upload directions.

Branch merges

Branch information

Recent commits

73f516d... by Benjamin Allot

Update default compression level to 3 instead of 0

e3f064a... by Colin Watson

pgbackup.py: Avoid leaving partial backups if pg_dump is interrupted

Reviewed-on: https://code.launchpad.net/~cjwatson/postgresql-charm/+git/postgresql-charm/+merge/448727
Reviewed-by: Haw Loeung <email address hidden>

78c1da3... by Colin Watson

pgbackup.py: Exclude slony schema from dumps

Reviewed-on: https://code.launchpad.net/~cjwatson/postgresql-charm/+git/postgresql-charm/+merge/448728
Reviewed-by: Haw Loeung <email address hidden>

cabebd9... by Colin Watson

pgbackup.py: Exclude slony schema from dumps

Copied from
https://bazaar.launchpad.net/~canonical-losas/losa-db-scripts/trunk/revision/7.1.8.
I considered making this configurable, but it seems non-invasive enough
that I don't think it's really worth the extra configuration surface.

19dab3c... by Colin Watson

pgbackup.py: Avoid leaving partial backups if pg_dump is interrupted

It's sometimes necessary to interrupt a daily pg_dump in order to
complete other database maintenance tasks. However, doing so results in
a partial backup file, which can result in problems if that file is
automatically restored to another system (for example, Launchpad's
staging instance works this way).

To avoid this problem, write dumps to a file whose name starts with
"partial-" (chosen to minimize the chances of scripts confusing such
files with complete backups, since the file names start with the
database name and restore scripts typically specify that), and only
rename them into place once the dump completes successfully.

4f4bbc7... by Barry Price

Linting

Reviewed-on: https://code.launchpad.net/~barryprice/postgresql-charm/+git/postgresql-charm/+merge/446387
Reviewed-by: 🤖 Canonical IS Review Bot <email address hidden>

59b1cb5... by Barry Price

Linting

de022a3... by Barry Price

Fix object syntax in data_dir error handling

Reviewed-on: https://code.launchpad.net/~barryprice/postgresql-charm/+git/postgresql-charm/+merge/446383
Reviewed-by: 🤖 Canonical IS Review Bot <email address hidden>

826eee5... by Barry Price

Fix object syntax in data_dir error handling

7c9fafa... by Arturo Enrique Seijas Fernández

Change description and add source in metadata

Reviewed-on: https://code.launchpad.net/~arturo-seijas/postgresql-charm/+git/postgresql-charm/+merge/441351
Reviewed-by: Tom Haddon <email address hidden>