initial commit

This commit is contained in:
finn committed 2022-03-20 12:05:25 +01:00
commit 8af910aba5
15 files changed
+606

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
FROM postgres:14
RUN apt-get update \
&& apt-get install -y --no-install-recommends postgresql-14-wal2json \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN echo "wal_level = logical" >> /usr/share/postgresql/postgresql.conf.sample
+10
View File
@@ -0,0 +1,10 @@
dc exec postgresql psql "user=cookbook replication=database"
IDENTIFY_SYSTEM;
CREATE_REPLICATION_SLOT test LOGICAL wal2json;
START_REPLICATION SLOT test 0/0000000
https://www.postgresql.org/docs/14/protocol-replication.html
https://github.com/postgres/postgres/blob/master/src/bin/pg_basebackup/pg_recvlogical.c
https://github.com/kibae/pg-logical-replication/blob/master/index.js
https://github.com/eulerto/wal2json