Skip to content

Commit

Permalink
Merge pull request #128 from thegentlemanphysicist/postgresql-15
Browse files Browse the repository at this point in the history
Postgresql 15
  • Loading branch information
WadeBarnes authored May 10, 2024
2 parents 8c1ea09 + 24bb648 commit 2e791af
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This image provides a postgres installation from which to run backups
FROM --platform=linux/amd64 quay.io/fedora/postgresql-14:14
FROM --platform=linux/amd64 quay.io/fedora/postgresql-15:15

# Change timezone to PST for convenience
ENV TZ=PST8PDT
Expand Down
26 changes: 25 additions & 1 deletion docs/TipsAndTricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,28 @@ spec:
cpu: '0'
memory: '0'
...
```
```

## Patroni Verification and Restore Throws errors

If you are using the postgres restoration process to restore a patroni cluster you will get some errors in the form:

```
DETAIL: Could not open extension control file "/usr/share/pgsql/extension/pg_stat_kcache.control": No such file or directory.
HINT: The extension must first be installed on the system where PostgreSQL is running.
ERROR: extension "pg_stat_kcache" does not exist
ERROR: extension "set_user" is not available
DETAIL: Could not open extension control file "/usr/share/pgsql/extension/set_user.control": No such file or directory.
HINT: The extension must first be installed on the system where PostgreSQL is running.
ERROR: extension "set_user" does not exist
```

These extensions are not supported on the Fedora operating system. Which is used as the base image for the backup container, `quay.io/fedora/postgresql-15:15`. Adding the `-I` flag to the verify and restore processes allows the container to restore your database in a patroni cluster.

```
./backup.sh -I -v all
./backup.sh -I -r <<service>>:<<port>>/<<db_name>>
```

Note: Due to the ignore errors flag you will have to be diligent in verifying that that the restore process is working as expected with your database implementation.

0 comments on commit 2e791af

Please sign in to comment.