Postgresql — How to set application name from JDBC url? — Stack Overflow

ApplicationName = String

Specifies the name of the application that is using the connection. This allows a database administrator to see what applications are connected to the server and what resources they are using through views like pg_stat_activity

So try:

jdbc:postgresql://localhost:5435/MyDB?ApplicationName=MyApp

Источник: Postgresql — How to set application name from JDBC url? — Stack Overflow.

Leave a Reply