Re: libpq environment variables in the server

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: libpq environment variables in the server
Дата
Msg-id 872a3a54-a169-acfc-322a-f6c5b8e89ece@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: libpq environment variables in the server  (Noah Misch <noah@leadboat.com>)
Ответы Re: libpq environment variables in the server
Список pgsql-hackers
On 2019-03-15 05:00, Noah Misch wrote:
> I consider the following style more idiomatic:
> 
>  {
>      local %ENV;
>      delete $ENV{PGAPPNAME};
>      ...
>  }

That doesn't work because the first line clears the entire environment.

What does work is

{
    delete local $ENV{PGAPPNAME};
    ...
}

But that is documented as new in Perl 5.12.0, so we might not be able to
use it.  It appears to work in the 5.8.9 I have lying around, so I'm
confused.

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


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

Предыдущее
От: Michael Banck
Дата:
Сообщение: Re: Offline enabling/disabling of data checksums
Следующее
От: "Kato, Sho"
Дата:
Сообщение: RE: Fix typo in test code comments