1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Find The Location Of Postgres Config Files as a postgres til

This commit is contained in:
jbranchaud
2016-10-16 09:43:04 -05:00
parent 3525ba5562
commit cb0319328c
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
# Find The Location Of Postgres Config Files
If you can connect to your database with `psql`, then you can easily find
the location of your Postgres config files. After connecting, I can ask
Postgres to show me where the main config file is:
```sql
> show config_file;
config_file
--------------------------------------------------------------------------------
/Users/jbranchaud/Library/Application Support/Postgres/var-9.5/postgresql.conf
```
In the same directory as that `postgresql.conf` file are a number of other
configuration files such as the `pg_hba.conf` file.
h/t Dillon Hafer