Where are the files postgresql.conf and pg_hba.conf on a Linux server running PostgreSQL 8.4 installed from Ubuntu repos?
|
| |||||||
feedback
|
migrated from stackoverflow.com Jun 20 '10 at 13:42
This question came from our site for professional and enthusiast programmers.
|
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.) Also, two tips:
| |||
|
feedback
|
|
| |||
|
feedback
|
|
As Vinko said, the location is distribution-dependent. To add to his answer: Your package management sofware will tell you where are the files installed by each package, (for example: You can also look inside the service startup script ( typically | |||
|
feedback
|