pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: RAJAMOHAN <garajamohan@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Symbolic link breaks for postgresql.auto.conf
Date: Sun, 06 Jun 2021 12:46:57 -0400
Message-ID: <651677.1622998017@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFzdntuKqBv9wYcKVHutJSTypG12z+2dPJZd4d7hnTeyzcuU5w@mail.gmail.com>
References: <CAFzdntuKqBv9wYcKVHutJSTypG12z+2dPJZd4d7hnTeyzcuU5w@mail.gmail.com>

RAJAMOHAN <garajamohan@gmail.com> writes:
> I am trying to keep a symbolic link for the *postgresql.auto.conf* outside
> the data directory. The link gets created but whenever I issue an alter
> system statement it gets broken.

This is not supported.  Don't do it.

The right way to keep the hand-maintained config files outside the
data directory is not the way you've done it here, either.  It might
accidentally work, but the preferred way is to put "data_directory =
whatever" in postgresql.conf and then start the postmaster with -D
pointing at where the config files are.

But in any case, postgresql.auto.conf is not hand-maintained; it
is part of the cluster data, so it belongs in the data directory.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <651677.1622998017@sss.pgh.pa.us>
Permalink:  ../651677.1622998017@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/651677.1622998017@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, garajamohan@gmail.com
  Subject: Re: Symbolic link breaks for postgresql.auto.conf
  In-Reply-To: <651677.1622998017@sss.pgh.pa.us>
  References: <CAFzdntuKqBv9wYcKVHutJSTypG12z+2dPJZd4d7hnTeyzcuU5w@mail.gmail.com> <651677.1622998017@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox