-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated README to make install easier
- Loading branch information
Ethan
committed
Mar 24, 2015
1 parent
dab357a
commit 0ed1259
Showing
1 changed file
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,36 @@ | ||
wal2json | ||
======== | ||
# wal2json | ||
|
||
JSON output plugin for changeset extraction | ||
|
||
### Forked | ||
|
||
This is a fork of the great utility at https://github.com/eulerto/wal2json | ||
|
||
I take no credit for the C code. Just a little packaging. | ||
|
||
Unfortunately, the source repository didn't make it into the postgres mainline source. Which makes it a bit tricky to compile with this makefile. I updated the makefile, so it works. | ||
|
||
|
||
### Install Steps | ||
|
||
(On Debian) | ||
|
||
``` | ||
# You need postgres 9.4 installed on your machine, you probably have it already | ||
sudo apt-get install postgres-9.4 | ||
sudo apt-get install postgres-contrib-9.4 | ||
# to compile this code, you need the following | ||
sudo apt-get install build-essential | ||
sudo apt-get build-dep postgresql-9.4 | ||
sudo apt-get install postgres-server-dev-9.4 | ||
# now go into the directory and... | ||
make | ||
sudo make install | ||
``` | ||
|
||
|
||
### Logical Replication | ||
|
||
You need to know quite a few things about logical replication to make use of this. If this is new to you, please check out [the official postgres documentation](http://www.postgresql.org/docs/9.4/static/logicaldecoding-example.html). You can replace 'test_decoding' with 'wal2json' to see the magic of this plugin. |