Re: connection file descriptors created with identical number after process fork on mac

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: connection file descriptors created with identical number after process fork on mac
Дата
Msg-id 325a5bf2-27e7-a787-167a-32379c8cc6e8@hogranch.com
обсуждение исходный текст
Ответ на Re: connection file descriptors created with identical number after process fork on mac  (Chris Withers <chris@simplistix.co.uk>)
Список pgsql-general
On 8/3/2016 4:25 PM, Chris Withers wrote:
>
> How can I convince myself, from the client side, that I really have
> got a new connection and not somehow ended up with one that been
> passed on as part of the fork?

$ psql -tc "select pg_backend_pid();"
           18635

$ psql -tc "select pg_backend_pid();"
           18665

$ psql -tc "select pg_backend_pid();"
           18727


now, operating system process ID's do get recycled eventually but not
very fast.

--
john r pierce, recycling bits in santa cruz



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

Предыдущее
От: Chris Withers
Дата:
Сообщение: Re: connection file descriptors created with identical number after process fork on mac
Следующее
От: Andy Colson
Дата:
Сообщение: pglogical cross subscribe