Some clients such as psql will also allow you to write history per host / user. ~/.psqlrc file add "\set HISTFILE ~/.psql_history_ :HOST _ :USER _ :DBNAME" for example.
Both of these should be well documented and relatively easy to test to see if they might be of some assistance for you.
Hope this helps.
Best regards,
Dan Smith
On Tue, Nov 23, 2021, 04:52 Michel SALAIS <msalais@msym.fr> wrote:
Hi,
If you mean the “standard” logging system for PostgreSQL the reply is No. Parameter “log_filename” is of context “sighup” and can’t be modified by session…