Skip to content

Instantly share code, notes, and snippets.

@the729
the729 / pgdiff.sh
Last active June 7, 2018 15:53
Postgres diff script using pgdiff
#!/bin/bash
#
# Examples usage:
# export DBCONN1=posrgresql://user1:pass1@host1:port1/db1
# export DBCONN2=posrgresql://user2:pass2@host2:port2/db2
# SCHEMAS="schema1 schema2" pgdiff.sh
#
# Exit with non-zero status if there are any differences or errors.
#