Re: Symbolic link breaks for postgresql.auto.conf

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Symbolic link breaks for postgresql.auto.conf
Дата
Msg-id 651677.1622998017@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Symbolic link breaks for postgresql.auto.conf  (RAJAMOHAN <garajamohan@gmail.com>)
Ответы Re: Symbolic link breaks for postgresql.auto.conf  (Vijaykumar Jain <vijaykumarjain.github@gmail.com>)
Список pgsql-general
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



В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Symbolic link breaks for postgresql.auto.conf
Следующее
От: Vijaykumar Jain
Дата:
Сообщение: Re: Symbolic link breaks for postgresql.auto.conf