Skip to content

Commit 905fa5b

Browse files
authored
Merge pull request #57 from olirice/wal2json
2 parents a122913 + 75e8df8 commit 905fa5b

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
.python-version
3+
venv/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Unmodified Postgres with some useful plugins. Our goal with this repo is not to
1818
-[PL/Java](https://github.com/tada/pljava). Write in Java functions in Postgres.
1919
-[pg_cron](https://github.com/citusdata/pg_cron). Run CRON jobs inside Postgres.
2020
-[pg-safeupdate](https://github.com/eradman/pg-safeupdate). Protect your data from accidental updates or deletes.
21+
-[wal2json](https://github.com/eulerto/wal2json). JSON output plugin for logical replication decoding
2122

2223
## Install
2324

ansible/tasks/setup-extensions.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# wal2json
2+
- name: Install wal2json
3+
apt:
4+
pkg:
5+
- "postgresql-{{ postgresql_version }}-wal2json"
6+
update_cache: yes
7+
cache_valid_time: 3600
8+
19
# postgis
210
- name: Install postgis for postgreSQL versions < 10
311
apt:

docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ FROM postgres:12
44
RUN apt-get update \
55
&& apt-get install postgresql-12-cron -y
66

7+
# install wal2json
8+
RUN apt-get update \
9+
&& apt-get install postgresql-$PG_MAJOR-wal2json -y
10+
711
# install postgis
812
ENV POSTGIS_MAJOR 3
913
ENV POSTGIS_VERSION 3.0.0+dfsg-2~exp1.pgdg100+1
@@ -198,4 +202,4 @@ ENV LANGUAGE=en_US.UTF-8
198202
ENV LANG=en_US.UTF-8
199203
ENV LC_ALL=en_US.UTF-8
200204
RUN mkdir -p /docker-entrypoint-initdb.d
201-
ADD ./mnt /docker-entrypoint-initdb.d/
205+
ADD ./mnt /docker-entrypoint-initdb.d/

0 commit comments

Comments
 (0)