February 2020
Intermediate to advanced
734 pages
38h 13m
English
As with all of the previous recipes, pgha2 will remain our replication subscriber. Execute all commands in this recipe on the provider system (pgha1) 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 pgha2 -f /tmp/tables.sql postgres
bucardo add table pgbench_accounts db=pgha1 bucardo add table pgbench_branches db=pgha1 bucardo add table pgbench_tellers db=pgha1
Read now
Unlock full access