Re: libpq environment variables in the server

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: libpq environment variables in the server
Дата
Msg-id cfd43269-b0e4-8b21-aabe-a11e4db86732@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: libpq environment variables in the server  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
On 2019-03-15 16:01, Noah Misch wrote:
>>>>  {
>>>>      local %ENV;
>>>>      delete $ENV{PGAPPNAME};
>>>>      ...
>>>>  }
>>>
>>> That doesn't work because the first line clears the entire environment.
>>
>> The solution to that is to do 'local %ENV = %ENV;', to assign a copy of
>> the original to the localised variable.
> 
> That's the right thing, not what I wrote.  We use that in
> src/bin/initdb/t/001_initdb.pl.

Great.  Committed that way.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: Make pg_checksums complain if compiled BLCKSZ and data folder'sblock size differ
Следующее
От: Fabien COELHO
Дата:
Сообщение: RE: Timeout parameters