add the source of param misconfigurations to error messages

From: Jordan Deitch <jd(at)rsa(dot)pub>
To: pgsql-hackers(at)postgresql(dot)org
Subject: add the source of param misconfigurations to error messages
Date: 2018-11-13 22:02:48
Message-ID: 1542146568.2365317.1575910000.38CCE8C8@webmail.messagingengine.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Hackers -

The command

$ postgres --config-file="/etc/postgresql/10/main/postgresql.conf"

can fail with the following error:

postgres: superuser_reserved_connections must be less than max_connections

even if max_connections > superuser_reserved_connections in that config file

This is due to the addition of the postgresql.auto.conf params.
Would the community welcome a patch whereby this detail in contained in the error?

something to the effect of:

postgres: superuser_reserved_connections must be less than max_connections (superuser_reserved_connections is set to 10 in $path$ and max_connections is set to 10 in $path$)

Alternatively, we can track alter system changes in the postgresql.conf, so we have a unified source of parameter configurations.

Thanks!

--
Jordan Deitch
https://id.rsa.pub/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-11-13 22:27:17 Re: [PATCH] Pass COPT and PROFILE to CXXFLAGS as well
Previous Message Andres Freund 2018-11-13 21:57:16 Re: [PATCH] Pass COPT and PROFILE to CXXFLAGS as well