Set application_name = 'myapp'

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
ccampbell
Posts: 29
Joined: Tue 01 Jun 2010 17:31
Location: Oregon

Set application_name = 'myapp'

Post by ccampbell » Wed 28 Aug 2013 21:19

Hi, (using dotConnect for Postgreql 6.6.217.0 & VS2010)

After establishing a connection to a postgresql database, I want to be able to set the application name so that the postgresql event log knows what application is associated with the data connection. There is no property or method associated with the pgSqlConnection object to allow me to assign it.

In postgresql I would create the connection then issue a SET application_name = 'myapplication'. How do I do something similar using dotConnect for Postgresql?

Thanks,

Chris

Shalex
Site Admin
Posts: 8241
Joined: Thu 14 Aug 2008 12:44

Re: Set application_name = 'myapp'

Post by Shalex » Fri 30 Aug 2013 07:24


ccampbell
Posts: 29
Joined: Tue 01 Jun 2010 17:31
Location: Oregon

Re: Set application_name = 'myapp'

Post by ccampbell » Fri 30 Aug 2013 13:37

Cool. I don't remember seeing that reply before.

Thank you very much!

Chris

Post Reply