Magnus Hagander <magnus(at)hagander(dot)net> writes:
> The check in PostmasterMain():
> if (ReservedBackends >= MaxBackends)
> {
> write_stderr("%s: superuser_reserved_connections must be less than
> max_connections\n", progname);
> ExitPostmaster(1);
> }
> should probably check against MaxConnections instead of MaxBackends, I think?
Yeah, this code probably dates from before there was a difference.
In general, I'd bet that this is not the only place where the wrong one
of those variables is being consulted.
regards, tom lane