aboutsummaryrefslogtreecommitdiff
path: root/scripts/guix-data-service-backup-database
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-03-25 20:47:53 +0000
committerChristopher Baines <mail@cbaines.net>2020-03-25 20:47:53 +0000
commitd0eff9da5d0c286fc387dc3e11fba0d3cc81561f (patch)
tree6b6b66644f35e4d3fdf32272588c44e0fca101ec /scripts/guix-data-service-backup-database
parent0c4e6a2fe49d13a65f836a2b8a5dade720aa7e6b (diff)
downloaddata-service-d0eff9da5d0c286fc387dc3e11fba0d3cc81561f.tar
data-service-d0eff9da5d0c286fc387dc3e11fba0d3cc81561f.tar.gz
Use the --no-comments option to pg_dump
Hopefully this will help with the pg_restore in the create-small-backup script: pg_restore: [archiver (db)] Error while PROCESSING TOC: pg_restore: [archiver (db)] Error from TOC entry 2875; 0 0 COMMENT EXTENSION plpgsql pg_restore: [archiver (db)] could not execute query: ERROR: must be owner of extension plpgsql Command was: COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
Diffstat (limited to 'scripts/guix-data-service-backup-database')
-rwxr-xr-xscripts/guix-data-service-backup-database1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/guix-data-service-backup-database b/scripts/guix-data-service-backup-database
index 3988a49..77fda89 100755
--- a/scripts/guix-data-service-backup-database
+++ b/scripts/guix-data-service-backup-database
@@ -16,6 +16,7 @@ renice 19 -p $$ || true
ionice -p $$ -c 3 || true
pg_dump --format=custom --compress=9 --serializable-deferrable \
+ --no-comments \
--username=guix_data_service \
--file="$TEMPORARY_FILE_NAME" \
"$DATABASE_NAME"