Fix wrong parameter description for Password Exec Command

The documentation mentions that `%HOST%` can be used as a replacement parameter for the Password Exec Field in the Advanced tab of the Server Dialog, but the parameter is actually `%HOSTNAME%`:
This commit is contained in:
Matthias Wilhelm
2025-02-12 21:42:02 +09:00
committed by GitHub
parent f63190dc93
commit 706eec0d5b

View File

@@ -206,8 +206,8 @@ Use the fields in the *Advanced* tab to configure a connection:
should be generated as a transient authorization token instead of providing a should be generated as a transient authorization token instead of providing a
password when connecting in `PAM authentication <https://www.postgresql.org/docs/current/auth-pam.html>`_ scenarios. password when connecting in `PAM authentication <https://www.postgresql.org/docs/current/auth-pam.html>`_ scenarios.
You can pass server hostname, port and DB username to the password exec command as variable by providing placeholders You can pass server hostname, port and DB username to the password exec command as variable by providing placeholders
like ``%HOST%``, ``%PORT%`` and ``%USERNAME%`` which will be replace with the server connection information. like ``%HOSTNAME%``, ``%PORT%`` and ``%USERNAME%`` which will be replace with the server connection information.
Example: ``/path/to/script --hostnmae %HOST% --port %PORT% --username %USERNAME%`` Example: ``/path/to/script --hostname %HOSTNAME% --port %PORT% --username %USERNAME%``
* Use the *Password exec expiration* field to specify a maximum age, in seconds, * Use the *Password exec expiration* field to specify a maximum age, in seconds,
of the password generated with a *Password exec command*. If not specified, of the password generated with a *Password exec command*. If not specified,
the password will not expire until your pgAdmin session does. the password will not expire until your pgAdmin session does.
@@ -247,4 +247,4 @@ a server node label in the object explorer tree.
Click on the *+* button to add a new tag. Some of the parameters are: Click on the *+* button to add a new tag. Some of the parameters are:
* *Text* field to specify the tag name. * *Text* field to specify the tag name.
* *Color* field to select the accent color of the tag. * *Color* field to select the accent color of the tag.