Hello all.. Is there any way to set Application_Name when using PostgreSQL?
For exemple: When we connect to PostgreSql and run 'SELECT * FROM pg_stat_activity;' there is a field called application_name.. How to set it?
I know that with MSSQL it works..See: http://zeoslib.sourceforge.net/viewtopi ... it=appname
How about PostgreSql?
Thanks
Renato
Set Application Name + PostgreSQL (SOLVED)
Set Application Name + PostgreSQL (SOLVED)
Last edited by rrricci on 06.01.2016, 12:31, edited 1 time in total.
Re: Set Application Name + PostgreSQL
ZConnection.Properties.Add('application_name=myapp1');
Michal
Michal
Re: Set Application Name + PostgreSQL
Hi Michal.. Thanks for the help.. I added your suggestion on BeforeConnect and it worked!
Thank you!
Renato
Thank you!
Renato