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

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: connection file descriptors created with identical number after process fork on mac
Date: 2016-08-03 23:40:56
Message-ID: 325a5bf2-27e7-a787-167a-32379c8cc6e8@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andy Colson 2016-08-04 01:27:38 pglogical cross subscribe
Previous Message Chris Withers 2016-08-03 23:25:09 Re: connection file descriptors created with identical number after process fork on mac