tests: Make postmaster/002_connection_limits deal verbose logs
authorAndres Freund
Mon, 10 Mar 2025 23:11:32 +0000 (19:11 -0400)
committerAndres Freund
Mon, 10 Mar 2025 23:32:26 +0000 (19:32 -0400)
commit59a1592e39fed164d4d6437d62a55aef36e866a5
tree2af52a1790a2e33742011e3e878416e385f0a947
parent29d6808edebb3eced76e2acbbcf453dd693ac6bf
tests: Make postmaster/002_connection_limits deal verbose logs

When log_error_verbosity=verbose is configured the test would hand (and then
fail), because of the sqlstate being added between log level and message. Make
regex cope.

Reported-by: Andrew Dunstan
Discussion: https://postgr.es/m/c7ba6bd0-3701-43d1-9087-017777fe9cd2%40dunslane.net
src/test/postmaster/t/002_connection_limits.pl