Обсуждение: application_name
Hi,
I'm a developer in Brazil, and I need your help about how utilize a string connection with the application_name!! Is possible??
Thank You for attention,
Luis Gustavo
Email sent using ProApps
I'm a developer in Brazil, and I need your help about how utilize a string connection with the application_name!! Is possible??
Thank You for attention,
Luis Gustavo
Email sent using ProApps
Hi Luis,
I set the application_name after the connection is established with execute:
set application_name = 'my application name'
Regards,
Malte Neumann
I set the application_name after the connection is established with execute:
set application_name = 'my application name'
Regards,
Malte Neumann
Am 12.11.2014 17:39, schrieb luis.gustavo@tjap.jus.br:
Hi,
I'm a developer in Brazil, and I need your help about how utilize a string connection with the application_name!! Is possible??
Thank You for attention,
Luis Gustavo
Email sent using ProApps
-- Prisma Computer GmbH Sternallee 89 - 68723 Schwetzingen Fon 0 62 02.5 75 68 10 Fax 0 62 02.5 75 68 75 eMail: m.neumann@prisma-computer.de Internet: www.prisma-computer.de Geschäftsführung: Gerald Wilkens, Bernhard Goebel Amtsgericht Mannheim HRB 420986 S USt-IdNr.: DE 144 278 153
On 11/13/2014 10:24 AM, Prisma Computer - M. Neumann wrote: > Hi Luis, > > I set the application_name after the connection is established with > execute: > set application_name = 'my application name' You can also put that in the ConnSettings datasource option. That will make the driver to execute that for you, just after establishing the connection, before handing the connection to the application. - Heikki
On 11/13/2014 09:48 PM, Heikki Linnakangas wrote: >> > > You can also put that in the ConnSettings datasource option. That will > make the driver to execute that for you, just after establishing the > connection, before handing the connection to the application. It'd be nice to allow the user to specify additional values for the startup packet, so application_name etc could be sent without an extra round-trip. That falls into the "patches are welcome" category though, I think. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services