8000 Be confident about pg_tde not existing in tests by AndersAstrand · Pull Request #431 · percona/postgres · GitHub
[go: up one dir, main page]

Skip to content

Be confident about pg_tde not existing in tests #431

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Be confident about pg_tde not existing in tests
We no long
10000
er run these tests when pg_tde is turned on globally.

There is no reason for us to CREATE IF NOT EXISTS in tests as we should
_know_ what state the database is in when running them.
  • Loading branch information
AndersAstrand committed Jun 13, 2025
commit 5414a99b68c4d5c5b652d138333bfcea28501d01
2 changes: 1 addition & 1 deletion contrib/pg_tde/expected/access_control.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\! rm -f '/tmp/pg_tde_test_keyring.per'
CREATE EXTENSION IF NOT EXISTS pg_tde;
CREATE EXTENSION pg_tde;
SELECT pg_tde_add_database_key_provider_file('local-file-provider', '/tmp/pg_tde_test_keyring.per');
pg_tde_add_database_key_provider_file
---------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion contrib/pg_tde/expected/alter_index.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\! rm -f '/tmp/pg_tde_test_keyring.per'
CREATE EXTENSION IF NOT EXISTS pg_tde;
CREATE EXTENSION pg_tde;
SELECT pg_tde_add_database_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per');
pg_tde_add_database_key_provider_file
---------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion contrib/pg_tde/expected/cache_alloc.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\! rm -f '/tmp/pg_tde_test_keyring.per'
-- Just checking there are no mem debug WARNINGs during the cache population
CREATE EXTENSION IF NOT EXISTS pg_tde;
CREATE EXTENSION pg_tde;
SELECT pg_tde_add_database_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per');
pg_tde_add_database_key_provider_file
---------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion contrib/pg_tde/expected/change_access_method.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\! rm -f '/tmp/pg_tde_test_keyring.per'
CREATE EXTENSION IF NOT EXISTS pg_tde;
CREATE EXTENSION pg_tde;
SELECT pg_tde_add_database_key_provider_file('file-vault', '/tmp/pg_tde_test_keyring.per');
pg_tde_add_database_key_provider_file
---------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion contrib/pg_tde/expected/create_database.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\! rm -f '/tmp/template_provider_global.per'
\! rm -f '/tmp/template_provider.per'
CREATE EXTENSION IF NOT EXISTS pg_tde;
CREATE EXTENSION pg_tde;
CREATE DATABASE template_db;
SELECT current_database() AS regress_database
\gset
Expand Down
4 changes: 2 additions & 2 deletions contrib/pg_tde/expected/default_principal_key.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\! rm -f '/tmp/pg_tde_regression_default_key.per'
CREATE EXTENSION IF NOT EXISTS pg_tde;
CREATE EXTENSION IF NOT EXISTS pg_buffercache;
CREATE EXTENSION pg_tde;
CREATE EXTENSION pg_buffercache;
SELECT pg_tde_add_global_key_provider_file('file-provider','/tmp/pg_tde_regression_default_key.per');
pg_tde_add_global_key_provider_file
-------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion contrib/pg_tde/expected/delete_principal_key.out