Re: [HACKERS] Bugs in superuser_reserved_connections and max_wal_senders vs max_connections

2012-08-10 Thread Magnus Hagander
On Thu, Aug 9, 2012 at 4:17 PM, Tom Lane wrote: > Magnus Hagander writes: >> The check in PostmasterMain(): >> if (ReservedBackends >= MaxBackends) >> { >> write_stderr("%s: superuser_reserved_connections must be less >> than >> max_connections\n", progname); >>

Re: [HACKERS] Bugs in superuser_reserved_connections and max_wal_senders vs max_connections

2012-08-09 Thread Tom Lane
Magnus Hagander 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 che

[HACKERS] Bugs in superuser_reserved_connections and max_wal_senders vs max_connections

2012-08-09 Thread Magnus Hagander
Both superuser_reserved_connections and max_wal_senders can be set to a value that's higher than max_connections, which is quite pointless, and annoying :) The docs for superuser_reserved_connections say "The value must be less than the value of max_connections.", but this is never enforced. Well,