hapostgres / pg_auto_failover

Postgres extension and service for automated failover and high-availability
Other
1.07k stars 112 forks source link

Initialize an already existing primary server #1002

Open pablopla opened 11 months ago

pablopla commented 11 months ago

What's the correct way to initialize a an already existing primary server?

The install page suggests to avoid automated creation of a Postgres data directory.

The pg_autoctl create page explains how to initialize an already existing primary server with existing pgdata directory.

Do we have to change something in the existing pgdata directory? If not, why is the step to avoid automated creating of the Postgres data directory suggested? Is it possible to use pg_restore and similar tools with a primary managed by pg_autoctl?