Re: Shortest offline window on database migration

2019-05-30 Thread Ian Lawrence Barwick
> 2019年5月31日(金) 6:53 Haroldo Kerry : >>> On Thu, May 30, 2019 at 12:54 PM Steven Winfield >>> wrote: >> >> >Has anyone been through this type of problem? >> > >> >> You could set up a new, empty db (with checksums enabled, etc.) on the >> new hardware and then use logical

Re: Shortest offline window on database migration

2019-05-30 Thread Jeff Janes
On Thu, May 30, 2019 at 11:08 AM Haroldo Kerry wrote: > Hello, > > We are migrating our PostgreSQL 9.6.10 database (with streaming > replication active) to a faster disk array. > We are using this opportunity to enable checksums, so we will have to do a > full backup-restore. > The database size

RE: Shortest offline window on database migration

2019-05-30 Thread Steven Winfield
>Has anyone been through this type of problem? > You could set up a new, empty db (with checksums enabled, etc.) on the new hardware and then use logical replication to sync across all the data from the existing cluster. (This logical replica could be doing binary replication to hot standbys

Re: Shortest offline window on database migration

2019-05-30 Thread Tomas Vondra
On Thu, May 30, 2019 at 12:08:04PM -0300, Haroldo Kerry wrote: Hello, We are migrating our PostgreSQL 9.6.10 database (with streaming replication active) to a faster disk array. We are using this opportunity to enable checksums, so we will have to do a full backup-restore. The database size is

Shortest offline window on database migration

2019-05-30 Thread Haroldo Kerry
Hello, We are migrating our PostgreSQL 9.6.10 database (with streaming replication active) to a faster disk array. We are using this opportunity to enable checksums, so we will have to do a full backup-restore. The database size is about 500GB, it takes about 2h:30min for a full backup, and then