Re: postgresql.auto.conf and reload

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: postgresql.auto.conf and reload
Дата
Msg-id CAA4eK1L8Cs5n4nNZSU2JYpKRLzs9J+8QfyeFjiA0PBtXu_SGhA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: postgresql.auto.conf and reload  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: postgresql.auto.conf and reload  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
On Mon, Aug 11, 2014 at 11:08 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
>
>
> While updating the patch, I found that the ConfigVariable which
> is removed from list has the fields that the memory has been already
> allocated but we forgot to free them. So I included the code to free
> them in the patch.

Yes, that is right.

! /*
! * Pick up only the data_directory if DataDir is not set, which
! * means that the configuration file is read for the first time and
! * PG_AUTOCONF_FILENAME file cannot be read yet. In this case,
! * we shouldn't pick any settings except the data_directory
! * from postgresql.conf because they might be overwritten
! * with the settings in PG_AUTOCONF_FILENAME file which will be
! * read later. OTOH, since it's ensured that data_directory doesn't
! * exist in PG_AUTOCONF_FILENAME file, it will never be overwritten
! * later.
! */
! else

It is bit incovinient to read this part of code, some other places in
same file use comment inside else construct which seems to be
better. one example is as below:

else
{
/*
* ordinary variable, append to list.  For multiple items of
* same parameter, retain only which comes later.
*/


I have marked this as Ready For Committer.

With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: replication commands and log_statements
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: replication commands and log_statements