Skip to content

Commit 777ea1a

Browse files
committed
Update kuttl tests for Postgres 15 public schema updates
With Postgres 15, the removal of PUBLIC creation permisson on the public schema requires updates to our kuttl test logic. This commit allows the tests to perform as expected with these new changes by creating/referencing new schemas as needed. Note that these changes should not impact Postgres versions < 15. Issue: [sc-16289]
1 parent afc009c commit 777ea1a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

testing/kuttl/e2e/pgbackrest-restore/02--create-data.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ spec:
2828
- --set=ON_ERROR_STOP=1
2929
- --command
3030
- |
31+
CREATE SCHEMA "original";
3132
CREATE TABLE important (data) AS VALUES ('treasure');

testing/kuttl/e2e/pgbackrest-restore/14--lose-data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ commands:
2121
# A reason to restore. Wait for the change to be sent to the WAL archive.
2222
kubectl exec --namespace "${NAMESPACE}" "${PRIMARY}" \
2323
-- psql -qb original --set ON_ERROR_STOP=1 \
24-
--command 'DROP TABLE important' \
24+
--command 'DROP TABLE original.important' \
2525
--command "SELECT pg_stat_reset_shared('archiver')" \
2626
--command 'SELECT pg_switch_wal()'
2727

testing/kuttl/e2e/streaming-standby/02--create-data.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ spec:
2828
- --set=ON_ERROR_STOP=1
2929
- --command
3030
- |
31+
CREATE SCHEMA "primary-cluster";
3132
CREATE TABLE important (data) AS VALUES ('treasure');

0 commit comments

Comments
 (0)