"Heikki Linnakangas" <heikki(at)enterprisedb(dot)com> writes:
> Another simple optimization occurred to me while looking at this: we
> should skip the memcpy/strcpy altogether if the BackendActivity slot is
> not in use. That seems like a good bet, you usually don't try to max out
> max_connections.
Huh? How could we be assigning to a slot that is not in use?
regards, tom lane