mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
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:
commit
bfc1cf8cde
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue