Line order v2.2 pg_hba.conf

Description:

How to rewrite pg_hba.conf completely in v2.2 or insert lines at the beginning?

When using the corresponding section in the cr.yaml, the lines are added to the end of those that are already set by default.

Steps to Reproduce:

  patroni:
    dynamicConfiguration:
      postgresql:
        parameters:
          shared_preload_libraries: pg_cron,pg_stat_monitor,pgaudit,pg_stat_statements
          krb_server_keyfile: postgres.keytab
          cron.database_name: postgres
          track_io_timing: on
         
        pg_hba:                                                                                                                                     
        - local all postgres trust

Version:

v2.2

1 Like