Hello,
PB 2019 R3, PostgreSQL 11
While querying the PostgreSQL database, with the following query
SELECT username, application_name, client_hostname
FROM pg_stat_activity
WHERE datname = 'database'
And state = 'active' ;
I get empty in application_name and null in client_hostname. I want to show correct values for application_name and hostname. Is there any way to set these values in Powerbuilder so that those values will get displayed when running the above query?
I use the following values to connect to a database from PB
DBMS=ODBC
ServerName=<serverIP>
LogId=<logid>
LogPassword=<pass>
Database=<database>
DBParm="ConnectString='Driver=PostgreSQL Unicode;Database=<database>;Server=<serverIP>;Port=<port>;UID=<logid>;PWD=<pass>',DisableBind=1"
Driver=PostgreSQL Unicode
Port=<port>
Lock="RC"
Happiness Always
BKR Sivaprakash
Thanks, mike S.