February 2020
Intermediate to advanced
734 pages
38h 13m
English
As with all of the previous recipes, pgha1 is our origin server and pgha2 will remain our replication subscriber. Execute all commands in this recipe as the postgres system user on the provider node unless stated otherwise. Follow these steps to copy the sample pgbench tables:
pg_dump -s -t 'pgbench*' postgres > /tmp/tables.sql
psql -U rep_user -h pgha2 -f /tmp/tables.sql postgres
SELECT pglogical.create_replication_set( set_name := 'pgbench', replicate_insert := TRUE, replicate_update ...
Read now
Unlock full access