Re: pgbench: could not connect to server: Resource temporarily unavailable

2022-08-22 Thread Junwang Zhao
Ok, thanks for the clarification. On Tue, Aug 23, 2022 at 11:37 AM Tom Lane wrote: > > Junwang Zhao writes: > > Just curious, *backlog* defines the maximum pending connections, > > why do we need to double the MaxConnections as the queue size? > > The postm

Re: pgbench: could not connect to server: Resource temporarily unavailable

2022-08-22 Thread Junwang Zhao
listen queue > length is now MaxConnections * 2, not MaxBackends * 2, because > the other processes counted in MaxBackends don't correspond to > incoming connections. > > I propose 0003 for HEAD only, but the docs changes could be > back-patched. > > regards, tom lane > -- Regards Junwang Zhao