Cleanup unused postgres config files for patroni instances
On patroni hosts, we have:
root@patroni-01-db-gstg.c.gitlab-staging-1.internal:/var/opt/gitlab/postgresql# find * | grep conf
data/postgresql.auto.conf
data/postgresql.base.conf.backup
data/recovery.conf
data/runtime.conf
data/postgresql.conf.backup
data/postgresql.conf
data/pg_ident.conf.backup
data/pg_ident.conf
data/pg_hba.conf
pg_ident.conf
postgresql.base.conf
postgresql.conf
Only postgresql.conf
is used - we should delete the unused config files in data/
to avoid confusion:
rm data/postgresql.conf
rm data/runtime.conf
This needs to be done on all nodes.
Edited by Andreas Brandl