We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf8e286 commit c99c49bCopy full SHA for c99c49b
packages/cubejs-postgres-driver/src/PostgresDriver.ts
@@ -132,6 +132,9 @@ export class PostgresDriver<Config extends PostgresDriverConfiguration = Postgre
132
user: getEnv('dbUser', { dataSource }),
133
password: getEnv('dbPass', { dataSource }),
134
ssl: this.getSslOptions(dataSource),
135
+ // Enable keep-alive to detect broken connections
136
+ keepAlive: true,
137
+ keepAliveInitialDelayMillis: 10000,
138
...config
139
});
140
this.pool.on('error', (err) => {
0 commit comments