Copy over large data Postgresql 9.5

Поиск
Список
Период
Сортировка
От Vikas Sharma
Тема Copy over large data Postgresql 9.5
Дата
Msg-id CAN6gwKxu3XU+nuTmOHHh8kcYAs6UvnnnpQvnAqLvqjxz7D_BOw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Copy over large data Postgresql 9.5  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Список pgsql-general
Hello Experts,

I need to transfer pgsql 9.5 data of 90GB from one Cloud provider to other.  We have plenty of downtime to do this. I will be copying over data directory after shutting down pgsql services on the source.
The problem is how can I confirm that the data has been copied over correctly. Is the pgsql service starting OK on target is enough to ensure that or is there anything more funky to do that?

I will create compressed archive of data and calculate SHA-256 checksum and compare after copying over to target.

At source pgsql is in streaming replication using repmgr (3.5) so I think I will have to recreate repmgr database after copying over and register master again.

Should I vacuum (full) and reindex pgsql on target to gather the statistics again.

Could you advise on the above please?

Regards
Vikas

В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: regex match and special characters
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: During promotion, new master tries to archive same segment twice