hapostgres / hapostgres/pg_auto_failover

Initialize an already existing primary server

Open
#1,002 0 comments 1 reaction 0 assignees View on GitHub
docs good first issue
Dominant language
C
Stars
1.4k
Forks
142
Avg merge
5h 8m
Merged PRs (30d)
1

Description

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

The [install page](https://pg-auto-failover.readthedocs.io/en/main/install.html#avoiding-the-default-postgres-service) suggests to avoid automated creation of a Postgres data directory.

The [pg_autoctl create page](https://pg-auto-failover.readthedocs.io/en/main/ref/pg_autoctl_create_postgres.html#description) 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.