Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denvaar/pgdiff
Compare what data changed between two points in time
https://github.com/denvaar/pgdiff
Last synced: about 4 hours ago
JSON representation
Compare what data changed between two points in time
- Host: GitHub
- URL: https://github.com/denvaar/pgdiff
- Owner: denvaar
- Created: 2021-08-13T05:14:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T02:29:52.000Z (9 months ago)
- Last Synced: 2024-02-10T16:30:30.374Z (9 months ago)
- Language: Shell
- Size: 21.5 KB
- Stars: 99
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pgdiff
Compare what data changed in your Postgres database between two points in time.
It works by just dumping out the tables into files in `/var/tmp/pgdiff`, so if you have a really large database, then you might have a bad time.
### Usage
Start/end a capture (use the same key a second time)
```bash
$ pgdiff postgresql://user:password@host:port/db_name -k some_key
```Delete existing captures
```bash
# all
$ pgdiff postgresql://user:password@host:port/db_name -d# some_key only
$ pgdiff postgresql://user:password@host:port/db_name -d -k some_key
```Limit capture to certain tables only
```bash
# no need to use -t on the second time
$ pgdiff postgresql://user:password@host:port/db_name -k some_key -t "table_a,table_b,other table"
```Show help info
```bash
$ pgdiff -h
```