Skip to content
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

Enable pg_tde extension if ENABLE_PG_TDE variable is set. #1103

Merged
merged 1 commit into from
Dec 26, 2024
Merged
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
16 changes: 12 additions & 4 deletions percona-distribution-postgresql-17/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,22 @@ docker_temp_server_stop() {


pg_setup_pg_stat_monitor_and_pg_tde() {
docker_process_sql --dbname postgres <<-'EOSQL'
alter system set shared_preload_libraries=pg_stat_monitor,pg_tde ;
libraries='pg_stat_monitor'
if [[ -n "${ENABLE_PG_TDE}" && "${ENABLE_PG_TDE}" != "0" ]]; then
libraries='pg_stat_monitor,pg_tde'
fi
docker_process_sql --dbname postgres <<-EOSQL
alter system set shared_preload_libraries=${libraries} ;
EOSQL
}

pg_setup_percona_pg_telemetry() {
docker_process_sql --dbname postgres <<-'EOSQL'
alter system set shared_preload_libraries=pg_stat_monitor,percona_pg_telemetry,pg_tde ;
libraries='pg_stat_monitor,percona_pg_telemetry'
if [[ -n "${ENABLE_PG_TDE}" && "${ENABLE_PG_TDE}" != "0" ]]; then
libraries='pg_stat_monitor,percona_pg_telemetry,pg_tde'
fi
docker_process_sql --dbname postgres <<-EOSQL
alter system set shared_preload_libraries= ${libraries};
EOSQL
}

Expand Down
Loading