Generally, according to the PostgreSQL best practices to configure the pg_hba.conf file, the first lines are for local connexions, and the last lines are for replication connexions. And between both, there are host connexions.
For our case, we would need to fix the variable postgresql_hba_entries value:
modify order in this value
perharps need to add a new variable for replication entries or configure these entries in the variable postgresql_additional_hba_entries
Generally, according to the PostgreSQL best practices to configure the
pg_hba.conf
file, the first lines are forlocal
connexions, and the last lines are forreplication
connexions. And between both, there arehost
connexions.For our case, we would need to fix the variable
postgresql_hba_entries
value:replication
entries or configure these entries in the variablepostgresql_additional_hba_entries