Skip to content

Commit 22aa645

Browse files
authored
Set sslmode to prefer, otherwise it might fail with clusters that don't have the new certificate.
1 parent 6214054 commit 22aa645

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

redash/query_runner/pg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def _get_connection(self):
186186
host=self.configuration.get('host'),
187187
port=self.configuration.get('port'),
188188
dbname=self.configuration.get('dbname'),
189-
sslmode='require',
189+
sslmode='prefer',
190190
sslrootcert=sslrootcert_path,
191191
async=True)
192192

0 commit comments

Comments
 (0)