Pour les versions de PostgreSQL supérieures à 10
Dalibo & Contributors
wal_level
wal sender
max_wal_senders
max_replication_slots
logical replication worker
CREATE PUBLICATION bd1_publication FOR ALL TABLES;
CREATE PUBLICATION bd1_publication FOR TABLE t1,t2,...;
CREATE PUBLICATION bd1_publication FOR TABLE t1 WHERE (c1 = 'xxx');
TRUNCATE
CREATE PUBLICATION ... FOR ALL TABLES
GRANT SELECT ON ALL TABLES IN SCHEMA public TO user_repli
pg_dumpall -g
pg_dump --schema-only
Sur l’instance destination (replicat)
CREATE SUBSCRIPTION ... CONNECTION ... PUBLICATION ...
SELECT * FROM pg_subscription_rel
pg_hba.conf
DROP SUBSCRIPTION ...
SELECT * FROM pg_stat_replication
SELECT * FROM pg_stat_subscription