add: Log actual host and port of listener connection
Diagnosing problems with listener channel notifications not being handled properly by PostgREST connected to read replicas is difficult. Issues might be related to lost connections and listener not being connected to the right host after failover or database server restarts. This patch adds logging of actual host:port used by libpq connection opened by the listener. It should make it easier to find out if PostgREST is connected to the right host.
This commit is contained in:
committed by
Steve Chavez
parent
5eac8bd203
commit
34a767a5cc
@@ -206,5 +206,5 @@ waitForObs (ObsChan orig copy) t msg f =
|
||||
obsDiagMessage :: Observation -> Text
|
||||
obsDiagMessage = \case
|
||||
(HasqlPoolObs o) -> show o
|
||||
o@(DBListenStart channel) -> constrName o <> show channel
|
||||
o@(DBListenStart host port channel) -> constrName o <> show (host, port, channel)
|
||||
o -> constrName o
|
||||
|
||||
Reference in New Issue
Block a user