Open joetynan opened 1 week ago
pg_easy_replicate
today doesn't allow the ability to copy & stream today, it just uses postgres Subscription + Publisher so Postgres will try to COPY
the initial data, so its perhaps better to drop the data in target DB first. However, few pointers if its useful
--recreate-indices-post-copy
flag that drops all the indexes in the target table(s) to make the COPY operation a bit fast, you can try that if you find it useful. It's been a bit hit/miss for me depending on the use case.
I was wondering - if there's existing data in a table, is that data overwritten when replication is established or is existing data left intact? Curious to see if perhaps I could speed up the initial data copy by doing a dump/restore of larger tables.