0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-14 10:33:51 +01:00
dendrite/internal/sqlutil
Neil Alexander ebd137cf6b
Check PostgreSQL connection count (#2760)
This PR queries PostgreSQL for the `max_connections` and
`superuser_reserved_connections` settings and then ensures that
Dendrite's `max_open_conns` doesn't exceed the allowed value.

This is a really common source of configuration problems and can either
result in blocking queries or deadlocks, so it seems reasonable that we
complain as loudly as possible when it happens.
2022-10-05 11:07:17 +01:00
..
migrate.go Tweak InsertMigration to avoid logging (#2720) 2022-09-22 15:53:15 +02:00
migrate_test.go Tweak InsertMigration to avoid logging (#2720) 2022-09-22 15:53:15 +02:00
sql.go Implement Push Notifications (#1842) 2022-03-03 11:40:53 +00:00
sqlutil.go Check PostgreSQL connection count (#2760) 2022-10-05 11:07:17 +01:00
sqlutil_test.go Don't use more than 999 variables in SQLite querys. (#1425) 2020-09-14 16:39:38 +01:00
trace.go Upgrade various dependencies (#2496) 2022-05-26 12:34:43 +01:00
trace_driver.go Run gofmt on dendrite - apply go 1.17 preferred build tags (#2021) 2021-11-02 16:48:48 +00:00
trace_driver_wasm.go Run gofmt on dendrite - apply go 1.17 preferred build tags (#2021) 2021-11-02 16:48:48 +00:00
unique_constraint.go Update dependencies (#2729) 2022-09-20 15:01:19 +01:00
unique_constraint_wasm.go Check unique constraint errors when manually inserting migrations (#2712) 2022-09-13 08:07:43 +02:00
uri.go Top-level setup package (#1605) 2020-12-02 17:41:00 +00:00
writer.go Component-wide TransactionWriters (#1290) 2020-08-21 10:42:08 +01:00
writer_dummy.go Component-wide TransactionWriters (#1290) 2020-08-21 10:42:08 +01:00
writer_exclusive.go Update dependencies (#2729) 2022-09-20 15:01:19 +01:00