From fde43f96117c2c658958ad35bc23bac3767099ab Mon Sep 17 00:00:00 2001 From: Muhammad Aqeel Date: Wed, 25 Dec 2024 19:25:16 +0500 Subject: [PATCH] Enable pg_tde in docker container. (#1102) * Enable pg_tde in docker container. * fixes condition in entrypoint. --- percona-distribution-postgresql-17/entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/percona-distribution-postgresql-17/entrypoint.sh b/percona-distribution-postgresql-17/entrypoint.sh index 211b331d..684d8520 100755 --- a/percona-distribution-postgresql-17/entrypoint.sh +++ b/percona-distribution-postgresql-17/entrypoint.sh @@ -250,15 +250,15 @@ docker_temp_server_stop() { } -pg_setup_pg_stat_monitor() { +pg_setup_pg_stat_monitor_and_pg_tde() { docker_process_sql --dbname postgres <<-'EOSQL' - alter system set shared_preload_libraries=pg_stat_monitor ; + alter system set shared_preload_libraries=pg_stat_monitor,pg_tde ; EOSQL } pg_setup_percona_pg_telemetry() { docker_process_sql --dbname postgres <<-'EOSQL' - alter system set shared_preload_libraries=pg_stat_monitor,percona_pg_telemetry ; + alter system set shared_preload_libraries=pg_stat_monitor,percona_pg_telemetry,pg_tde ; EOSQL } @@ -320,7 +320,7 @@ _main() { pg_setup_percona_pg_telemetry /usr/bin/telemetry-agent-supervisor.sh & else - pg_setup_pg_stat_monitor + pg_setup_pg_stat_monitor_and_pg_tde fi docker_temp_server_stop