Skip to content

Commit

Permalink
Enable pg_tde in docker container. (#1102)
Browse files Browse the repository at this point in the history
* Enable pg_tde in docker container.

* fixes condition in entrypoint.
  • Loading branch information
maqeel75 authored Dec 25, 2024
1 parent 68bd7ad commit fde43f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions percona-distribution-postgresql-17/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fde43f9

Please sign in to comment.