Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 859 Bytes

README-linux.md

File metadata and controls

16 lines (12 loc) · 859 Bytes

Linux pgdiff instructions

These instructions will guide you through the process of generating SQL, reviewing it, and optionally running it on the target database. It requires a familiarity with a Linux command-line shell.

  1. download pgdiff-linux-<version>.tar.gz to your machine
  2. untar it (a new directory will be created: called pgdiff)
  3. cd into the new pgdiff directory
  4. edit pgdiff.sh to change the db access values... or set them at runtime (i.e. USER1=joe NAME1=mydb USER2=joe NAME2=myotherdb ./pgdiff.sh)
  5. run pgdiff.sh

tar contents

  • pgdiff - a linux executable
  • pgrun - a linux executable for running SQL
  • pgdiff.sh - a bash shell script to coordinate your interaction with pgdiff and pgrun

If you write a Go version of pgdiff.sh, please share it and I'll include it for others to use (with your copyright information intact).