While troubleshooting another issue I noticed that in my Ubuntu 14.04 system there are two postgresql
directories containing a postgresql.conf
file:
- /usr/share/postgresql
- /etc/postgresql/9.3/main/
With the following directory structure:
$ tree -d /usr/share/postgresql
/usr/share/postgresql
├── 9.3
│ ├── extension
│ ├── man
│ │ ├── man1
│ │ └── man7
│ ├── timezonesets
│ └── tsearch_data
└── 9.4
└── man
├── man1
└── man7
... and:
$ tree -d /etc/postgresql/9.3/main/
/etc/postgresql/9.3/main/
With the postgresql.conf
files residing in the following locations:
- /usr/share/postgresql/9.3/postgresql.conf
- /etc/postgresql/9.3/main/postgresql.conf
By using SHOW config_file;
I have verified which configuration file my server is using:
postgres=# SHOW config_file;
config_file
------------------------------------------
/etc/postgresql/9.3/main/postgresql.conf
(1 row)
My question is why do I find the postgresql.conf
file in two locations and is the above an indication of some unused installation or other unused artifacts I ought to purge?