-
-
Notifications
You must be signed in to change notification settings - Fork 953
Closed
Description
When the database is rebooted gracefully, it sends an <E
meaning FATAL: terminating connection due to administrator command (SQLSTATE 57P01)
lib/pq discards such connection upfront and the next execution attempts to create a new connection.
Pgx returns an error at the next execution which is a wasted error, because typically the database has already rebooted, or a hot replica is already available,
How can we make pgx realise upfront of similar problems with the connection so that we don't waste a usage attempt with an error when we didn't need to?
sebcante, mvrhov, leowmjw, masroorhasan, Hellysonrp and 5 more
Metadata
Metadata
Assignees
Labels
No labels