diff --git a/misc/tools.func b/misc/tools.func index 3ee194cf0..771a2efe8 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -6752,22 +6752,6 @@ _configure_pg_cron_preload() { # USE_PGDG_REPO=true PG_VERSION="17" setup_postgresql # Specific version from PGDG # PG_VERSION="17" PG_MODULES="cron" setup_postgresql # With pg_cron module # ------------------------------------------------------------------------------ - -# Internal helper: Configure shared_preload_libraries for pg_cron -_configure_pg_cron_preload() { - local modules="${1:-}" - [[ -z "$modules" ]] && return 0 - if [[ ",$modules," == *",cron,"* ]]; then - local current_libs - current_libs=$(sudo -u postgres psql -tAc "SHOW shared_preload_libraries;" 2>/dev/null || echo "") - if [[ "$current_libs" != *"pg_cron"* ]]; then - local new_libs="${current_libs:+${current_libs},}pg_cron" - $STD sudo -u postgres psql -c "ALTER SYSTEM SET shared_preload_libraries = '${new_libs}';" - $STD systemctl restart postgresql - fi - fi -} - function setup_postgresql() { local PG_VERSION="${PG_VERSION:-16}" local PG_MODULES="${PG_MODULES:-}"