Saturday, June 1, 2013

Difference between `/var/lib/pgsql/9.1/data/pg_hba.conf` and `/var/lib/pgsql/pg_hba.conf`

Difference between `/var/lib/pgsql/9.1/data/pg_hba.conf` and `/var/lib/pgsql/pg_hba.conf`

From http://www.postgresql.org/docs/9.1/static/auth-pg-hba-conf.html, it says: A default pg_hba.conf file is installed when the data directory is initialized by initdb.
I would assume when I run initdb, it will generate this /var/lib/pgsql/9.1/data/pg_hba.conf. Then how about /var/lib/pgsql/pg_hba.conf?
Could anyone explain how do I end up with two pg_hba.conf with different content?
Which one eventually will be used?

No comments:

Post a Comment