Re: Three Variations of postgresql.conf

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Michael Convey <smconvey(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Three Variations of postgresql.conf
Date: 2015-11-12 16:01:06
Message-ID: 5644B7C2.3080508@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/12/2015 07:46 AM, Michael Convey wrote:
> In Ubuntu 14.10, there are three variations of the postgresql.conf
> configuration file, as follows:
>
> /var/lib/postgresql/9.4/main/postgresql.auto.conf

The above is for when you do ALTER SYSTEM:
http://www.postgresql.org/docs/9.4/interactive/sql-altersystem.html

> /usr/lib/tmpfiles.d/postgresql.conf

This is system file that the OS seems to be using to determine where to
run Postgres sockets, create temp files, etc:

"# Directory for PostgreSQL sockets, lockfiles and stats tempfiles
d /var/run/postgresql 2775 postgres postgres - -
# Log directory
d /var/log/postgresql 1775 root postgres - -
"

I would leave this one alone.

In my 14.04 install there are also files for sshd and xconsole.

> /etc/postgresql/9.4/main/postgresql.conf

The above is the primary conf file for the cluster. This is where you
want to change variables, if you are not using ALTER SYSTEM.

>
> What is the difference between these files and which is the correct one
> to change for modifying the configurations contained therein?

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Melvin Davidson 2015-11-12 16:07:03 Re: Three Variations of postgresql.conf
Previous Message Michael Convey 2015-11-12 15:46:26 Three Variations of postgresql.conf