set psql application_name in startup script

This commit is contained in:
Grant Limberg 2021-09-02 11:23:45 -07:00
parent a2ffe8c05e
commit dc61f78916
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
2 changed files with 4 additions and 2 deletions

View file

@ -150,7 +150,7 @@ PostgreSQL::PostgreSQL(const Identity &myId, const char *path, int listenPort, R
{
char myAddress[64];
_myAddressStr = myId.address().toString(myAddress);
_connString = std::string(path) + " application_name=controller_" + _myAddressStr;
_connString = std::string(path);
auto f = std::make_shared<PostgresConnFactory>(_connString);
_pool = std::make_shared<ConnectionPool<PostgresConnection> >(
15, 5, std::static_pointer_cast<ConnectionFactory>(f));