Page 1 of 1

Set application_name = 'myapp'

Posted: Wed 28 Aug 2013 21:19
by ccampbell
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

Re: Set application_name = 'myapp'

Posted: Fri 30 Aug 2013 07:24
by Shalex

Re: Set application_name = 'myapp'

Posted: Fri 30 Aug 2013 13:37
by ccampbell
Cool. I don't remember seeing that reply before.

Thank you very much!

Chris