puede ser tan simple como:
SHOW max_connections;
Esto devuelve el ajuste actualmente efectiva. Tenga en cuenta que puede diferir de la configuración en postgresql.conf
ya que hay un couple of ways to set run-time parameters in PostgreSQL. Para restablecer el ajuste de "original" de postgresql.conf
en su sesión actual:
RESET max_connections;
Sin embargo, no es aplicable a esta configuración particular. Per documentation:
Este parámetro solo se puede configurar en el inicio del servidor.
Para ver todos los ajustes:
SHOW ALL;
More on the SHOW
command in the manual.
Si necesita más información o desea integrar el look-up en un SELECT
consulta estándar, hay también:
SELECT * FROM pg_settings;
Devuelve el mismo resultado que SHOW ALL
, pero con la información adicional por ajuste. Para su solicitud original:
SELECT *
FROM pg_settings
WHERE name = 'max_connections';