2026-10-15 15:35:22
This commit is contained in:
1 parent
fbf826bf0c
commit
a6ca621d3e
3 files changed
+68
-8
No files matched your search
@@ -152,12 +152,13 @@ mkdir -p "$SOURCES_DIR"
|
||||
"$SCRIPT_DIR/install_pgaudit.sh" --version "$POSTGRES_VERSION"
|
||||
"$SCRIPT_DIR/install_set_user.sh" --version "$POSTGRES_VERSION"
|
||||
"$SCRIPT_DIR/install_pg_stat_statements.sh" --version "$POSTGRES_VERSION"
|
||||
"$SCRIPT_DIR/install_passwordcheck.sh" --version "$POSTGRES_VERSION"
|
||||
"$SCRIPT_DIR/install_pg_repack.sh" --version "$POSTGRES_VERSION"
|
||||
"$SCRIPT_DIR/install_pg_stat_monitor.sh" --version "$POSTGRES_VERSION"
|
||||
"$SCRIPT_DIR/install_pgvector.sh" --version "$POSTGRES_VERSION"
|
||||
|
||||
readonly CONFIG_FILE="${CONFIG_FILE:-}"
|
||||
readonly SHARED_PRELOAD_LIBRARIES="pg_cron,timescaledb,pgaudit,pg_stat_statements,pg_stat_monitor"
|
||||
readonly SHARED_PRELOAD_LIBRARIES="pg_cron,timescaledb,pgaudit,pg_stat_statements,pg_stat_monitor,passwordcheck"
|
||||
|
||||
if [[ -n "$CONFIG_FILE" ]]; then
|
||||
[[ -f "$CONFIG_FILE" ]] || {
|
||||
@@ -173,7 +174,7 @@ path = pathlib.Path(sys.argv[1])
|
||||
text = path.read_text()
|
||||
pattern = r"(?m)^[ \t]*(#?)[ \t]*shared_preload_libraries[ \t]*=[ \t]*'([^']*)'[^\n]*$"
|
||||
match = re.search(pattern, text)
|
||||
required = ("pg_cron", "timescaledb", "pgaudit", "pg_stat_statements", "pg_stat_monitor")
|
||||
required = ("pg_cron", "timescaledb", "pgaudit", "pg_stat_statements", "pg_stat_monitor", "passwordcheck")
|
||||
if match:
|
||||
libraries = [item.strip() for item in match.group(2).split(",") if item.strip()]
|
||||
for library in required:
|
||||
@@ -206,6 +207,7 @@ printf ' TimescaleDB: %s\n' "$(extension_version timescaledb)"
|
||||
printf ' pgaudit: %s\n' "$(extension_version pgaudit)"
|
||||
printf ' set_user: %s\n' "$(extension_version set_user)"
|
||||
printf ' pg_stat_statements: %s\n' "$(extension_version pg_stat_statements)"
|
||||
printf ' passwordcheck: PostgreSQL %s contrib module\n' "$POSTGRES_VERSION"
|
||||
printf ' pg_repack: %s\n' "$(extension_version pg_repack)"
|
||||
printf ' pg_stat_monitor: %s\n' "$(extension_version pg_stat_monitor)"
|
||||
printf ' pgvector: %s\n' "$(extension_version vector)"
|
||||
|
||||
Reference in new issue
Block a user