Move around --no-tablespaces
Turns out, at the moment, this is ineffective when combined with the archive formats, like the custom format in use. Therefore, move it to the pg_restore command, where hopefully it'll work.
This commit is contained in:
parent
796c129a36
commit
9c72fc23dc
3 changed files with 2 additions and 2 deletions
|
|
@ -32,6 +32,7 @@ psql --no-psqlrc "$URI" --command="CREATE DATABASE $TMP_DATABASE_NAME WITH OWNER
|
|||
URI_FOR_DATABASE="${URI/test/$TMP_DATABASE_NAME}"
|
||||
|
||||
pg_restore --username=guix_data_service --jobs=8 --dbname="$URI_FOR_DATABASE" \
|
||||
--no-tablespaces \
|
||||
"$BACKUP_DIRECTORY/$DATE/$FULL_BACKUP_NAME"
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --echo-queries --no-psqlrc "$URI_FOR_DATABASE" -U guix_data_service <<EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue