Skip to content

Commit a350cbb

Browse files
committed
Merge branch 'develop' of github.com:supabase/postgres into feature/supabasePostgresV1.0
2 parents baa490f + 905fa5b commit a350cbb

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
@@ -21,6 +21,7 @@ Unmodified Postgres with some useful plugins. Our goal with this repo is not to
2121
| [pgsql-http](https://github.com/pramsey/pgsql-http) | HTTP client for Postgres. |
2222
| [plpgsql_check](https://github.com/okbob/plpgsql_check) | Linter tool for PL/pgSQL. |
2323
| [pg-safeupdate](https://github.com/eradman/pg-safeupdate) | Protect your data from accidental updates or deletes. |
24+
| [wal2json](https://github.com/eulerto/wal2json) | JSON output plugin for logical replication decoding. |
2425
| [PL/Java](https://github.com/tada/pljava) | Write in Java functions in Postgres. |
2526
| [plv8](https://github.com/plv8/plv8) | Write in Javascript functions in Postgres. |
2627

ansible/tasks/setup-extensions.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
- name: Install pg-safeupdate
2626
import_tasks: tasks/postgres-extensions/09-pg-safeupdate.yml
2727

28+
- name: Install wal2json
29+
apt:
30+
pkg:
31+
- "postgresql-{{ postgresql_version }}-wal2json"
32+
update_cache: yes
33+
cache_valid_time: 3600
34+
install_recommends: no
35+
2836
# - name: Install timescaledb
2937
# import_tasks: tasks/postgres-extensions/10-timescaledb.yml
3038

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)