sudo su postgres -c "\
	psql -c \"create table testdb001\" &&
	psql -f testdb001.sql testdb001;"

sudo su postgres -c "\
	rm -Rf /tmp/291873982379; \
	./pg_dump -v --jobs=2 --lock-early \
		--format=d \
		--file=/tmp/291873982379 testdb001; \
	ls -l /tmp/291873982379"

sudo su postgres -c "\
	psql -c \"drop database if exists testdb002;\" \
	&& psql -c \"create database testdb002\" \
	&& pg_restore --jobs=2 --dbname=testdb002 /tmp/291873982379" 

sudo su postgres -c "\
	cd /tmp/291873982379; \
	pg_dump testdb001 > a; \
	pg_dump testdb002 > b; \
	diff a b > diff; \
	if [ -s diff ]; then \
		echo 'FAIL'; \
	else \
		echo 'SUCCESS'; \
	fi;"












