February 2020
Intermediate to advanced
734 pages
38h 13m
English
For this recipe, pgha1 is our provider and pgha2 will remain our subscriber. Follow these instructions on the provider node (unless told otherwise) to copy the pgbench tables and all future changes from pgha1 to pgha2:
pg_dump -s -t 'pgbench*' postgres > /tmp/tables.sql
psql -U rep_user -h pgha2 -f /tmp/tables.sql postgres
SELECT schemaname, tablename FROM pg_tables WHERE tablename ...
Read now
Unlock full access