Skip to content

Commit c8806d0

Browse files
pcncdarora
andauthoredJul 18, 2024··
fix: ensure that the last extension does not get dropped during upgrades (#1050)
Co-authored-by: Div Arora <root@darora.com>
1 parent 91a96e5 commit c8806d0

File tree

1 file changed

+1
-1
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+1
-1
lines changed
 

‎ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function initiate_upgrade {
170170

171171
# Exclude empty-string entries, as well as leading/trailing commas and spaces resulting from the above lib exclusions
172172
# i.e. " , pg_stat_statements, , pgsodium, " -> "pg_stat_statements, pgsodium"
173-
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | grep -oP '\S+[,$]' | tr "\n" " " | sed "s/,\s*$//" | xargs)
173+
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | tr ',' ' ' | tr -s ' ' | tr ' ' ', ')
174174

175175
PGDATAOLD=$(cat "$POSTGRES_CONFIG_PATH" | grep data_directory | sed "s/data_directory = '\(.*\)'.*/\1/")
176176

0 commit comments

Comments
 (0)
Please sign in to comment.