appname added to pg connection string

This commit is contained in:
Jan Prochazka 2023-01-27 16:31:20 +01:00
parent 2fee308185
commit 3f525cacc1

View File

@ -70,6 +70,7 @@ const drivers = driverBases.map(driverBase => ({
options = useDatabaseUrl
? {
connectionString: databaseUrl,
application_name: 'DbGate',
}
: {
host: authType == 'socket' ? socketPath || driverBase.defaultSocketPath : server,
@ -78,6 +79,7 @@ const drivers = driverBases.map(driverBase => ({
password,
database: database || 'postgres',
ssl,
application_name: 'DbGate',
};
}