You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add connection strings to address dalibo#151 & dalibo#147
The idea is to mimic psql behavior of allowing a connection string to be
specified as argument of the script. In that case the information provided
overrides the host, port, user and dbname options.
Two syntax are possible (depending in the version of libpq).
(https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING)
pg_activity "host=/tmp port=5432 user=toto dbname=pgbench"
pg_activity "postgresql://toto@localhost:5432/bench"
psql allows you to connect with the following syntax:
It would be helpful if pg_activity provided the same ability.
Especially useful if you store your connection strings in some kind of environment variables.
The text was updated successfully, but these errors were encountered: