Set application_name = 'myapp'
Posted: 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
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