Where are the files postgresql.conf
and pg_hba.conf
on a Linux server running PostgreSQL 8.4 installed from Ubuntu repos?
Postgresql – Location of postgresql.conf and pg_hba.conf on an Ubuntu server
configurationpostgresql
Related Topic
- PostgreSQL – Troubleshooting Connection Issues on VirtualBox Guest
- PostgreSQL – Default Superuser Username/Password After New Install
- Postgresql – unable to connect to PostgreSQL 8.4 on Ubuntu 10.04 server
- PostgreSQL on Ubuntu – Running Multiple Versions on the Same Server
- Postgresql – Postgres Remote Access
- PostgreSQL: error with pg_hba.conf
Best Answer
Looking for "pg_hba.conf ubuntu" on Google gives you
https://help.ubuntu.com/community/PostgreSQL
which shows the location of the files.
The documentation states the following:
Note it says stored in the database cluster's data directory and that it's possible to place it elsewhere, via a configuration parameter. Official documentation cannot point you to a specific folder because the actual location depends on both how the OS maker and the machine's administrator have set PostgreSQL up. Remember PostgreSQL supports a lot of different operating systems (and Linux distributions.)
As Neutrino shows, if you can access your server via psql, you can tell it to show you the file location.
Also, two tips: