You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When postgres returns a notice as part of connection, the connection is terminated with this Error: "Error: Unknown response for startup: N".
To Reproduce
Get a postgres instance that has some misconfiguration (in my case, the notice is: "SWARNING�VWARNING�C42602�Minvalid configuration parameter name "supautils.policy_grants", removing it�D"supautils" is now a reserved prefix.�Fguc.c�L9729�RMarkGUCPrefixReserved")
Expected behavior
It should just log the notice and continue.
Additional context
If applicable, add any other context about the problem here.
Describe the bug
When postgres returns a notice as part of connection, the connection is terminated with this Error: "Error: Unknown response for startup: N".
To Reproduce
Get a postgres instance that has some misconfiguration (in my case, the notice is: "SWARNING�VWARNING�C42602�Minvalid configuration parameter name "supautils.policy_grants", removing it�D"supautils" is now a reserved prefix.�Fguc.c�L9729�RMarkGUCPrefixReserved")
Expected behavior
It should just log the notice and continue.
Additional context
If applicable, add any other context about the problem here.
To fix, all I had to do was add a NOTICE type:
And just log the thing instead of crashing:
Hope that's helpful!
The text was updated successfully, but these errors were encountered: