I'm currently doing this with a 2.2 TB database. Best way IMO is to (UPDATE pg_index SET indisready = false ... ) for non PK indexes for the largest tables. Then just set it back to indisready = true after its done and run a REINDEX CONCURRENTLY on the indexes that were disabled.
Got about a transfer speed of 100GB per 50 minutes with this method with consistent results. On Fri, Sep 24, 2021 at 11:49 AM Westwood, Giles <[email protected]> wrote: > > > > > On Fri, Sep 24, 2021 at 3:39 PM Justin Pryzby <[email protected]> > wrote: > >> On Fri, Sep 24, 2021 at 03:28:50PM +0100, Westwood, Giles wrote: >> >> Did you see this thread and its suggestions to 1) set bulk load >> parameters; >> and, 2) drop indexes and FKs ? >> >> >> https://www.postgresql.org/message-id/flat/[email protected] >> >> > I did actually but I wanted to avoid getting my hands dirty with anything > schema wise. I've found another person with another similar situation:- > > https://github.com/2ndQuadrant/pglogical/issues/325 > >
