File: test_dump_restore.sh

package info (click to toggle)
pgpointcloud 1.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,892 kB
  • sloc: sql: 40,767; ansic: 11,045; xml: 935; makefile: 297; cpp: 282; perl: 248; python: 178; sh: 92
file content (10 lines) | stat: -rwxr-xr-x 205 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#! /usr/bin/env bash

set -e

createdb test
psql test < .github/scripts/test_dump_restore.sql
pg_dump test -Fp > dump.sql
cat dump.sql
createdb test_restore
psql -v ON_ERROR_STOP=1 test_restore < dump.sql