-
Notifications
You must be signed in to change notification settings - Fork 61
Commit c3cb2b6
Fix idle clone check when user <> 'postgres'
If user is not `postgres` and we do not specify `dbname`, connection will be established to dbname=user.
Which may fail if there is no such database.
We can rely on the fact that DB `postgres` is present:
> The postgres database is also created when a database cluster is initialized.
-- from the official docs https://www.postgresql.org/docs/current/manage-ag-templatedbs.html.1 parent d188491 commit c3cb2b6
1 file changed
+5
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
561 | 561 |
| |
562 | 562 |
| |
563 | 563 |
| |
564 | - | ||
564 | + | ||
565 | 565 |
| |
566 | 566 |
| |
567 | 567 |
| |
568 | 568 |
| |
569 | 569 |
| |
570 | 570 |
| |
571 | - | ||
572 | - | ||
571 | + | ||
572 | + | ||
573 | + | ||
574 | + | ||
573 | 575 |
| |
574 | 576 |
| |
575 | 577 |
| |
|
0 commit comments