Merge pull request #6617 from nextcloud/enh/noid/improve-db-import

db-import: improve the import process by using the `smart` mode and a higher timeout
This commit is contained in:
Simon L. 2025-07-10 11:20:28 +02:00 committed by GitHub
commit bfc1cf8cde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -128,7 +128,9 @@ EOSQL
fi fi
# Shut down the database to be able to start it again # 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 # Change database port back to default
export PGPORT=5432 export PGPORT=5432