Set Application Name + PostgreSQL (SOLVED)

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
rrricci
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 05.04.2014, 02:12

Set Application Name + PostgreSQL (SOLVED)

Post by rrricci »

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
Last edited by rrricci on 06.01.2016, 12:31, edited 1 time in total.
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: Set Application Name + PostgreSQL

Post by miab3 »

ZConnection.Properties.Add('application_name=myapp1');

Michal
rrricci
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 05.04.2014, 02:12

Re: Set Application Name + PostgreSQL

Post by rrricci »

Hi Michal.. Thanks for the help.. I added your suggestion on BeforeConnect and it worked!

Thank you!

Renato
Post Reply