February 2017
Intermediate to advanced
536 pages
28h 47m
English
As with all of the previous recipes 192.168.56.10 is our origin server and 192.168.56.30 will remain our replication subscriber. Execute all commands in this recipe as the postgres system user. Follow these steps to copy the sample pgbench tables:
pg_dump -s -t 'pgbench*' postgres > /tmp/tables.sql
psql -U rep_user -h 192.168.56.30 -f /tmp/tables.sql postgres
SELECT pglogical.create_replication_set(set_name := 'pgbench',
replicate_insert := TRUE, replicate_update := ...Read now
Unlock full access