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