Initializing your cluster
Before you begin
The data directory in
Patroni must be owned by
PostgreSQL superuser. Provide appropriate permissions to superuser as
follows:chown -R <SUPERUSER_NAME> <DATA_DIR>Change
data directory permissions so that only superuser can access with these
commands:
Where,
<DATA_DIR> is data directory path and name.chmod -R 700 <DATA_DIR>About this task
sudo if
your user is in sudoers list.