From fc0d21cc49bca931ac84ee131abe428f588e965b Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Fri, 4 Jul 2025 13:36:55 +0200 Subject: [PATCH] db-import: improve the import process by using the `smart` mode and a higher timeout Signed-off-by: Simon L. --- Containers/postgresql/start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Containers/postgresql/start.sh b/Containers/postgresql/start.sh index dbb74196..551bb10e 100644 --- a/Containers/postgresql/start.sh +++ b/Containers/postgresql/start.sh @@ -128,7 +128,9 @@ EOSQL fi # Shut down the database to be able to start it again - pg_ctl stop -m fast + # The smart mode disallows new connections, then waits for all existing clients to disconnect and any online backup to finish + # Wait for 1800s to make sure that a checkpoint is completed successfully + pg_ctl stop -m smart -t 1800 # Change database port back to default export PGPORT=5432