Skip to content

Commit e65f949

Browse files
committed
Make new auto_explain test safe for log_error_verbosity = verbose.
Allow for the possible presence of a SQLSTATE code in the expected warning message, similarly to b998196 and 19408aa (although here I see no need to allow more than one specific SQLSTATE). Per gripe from Andrew Dunstan. Discussion: https://postgr.es/m/c550ac53-5db5-3958-1798-50bae3d9af71@dunslane.net
1 parent a3699c5 commit e65f949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/auto_explain/t/001_auto_explain.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ sub query_log
135135

136136
like(
137137
$log_contents,
138-
qr/WARNING: permission denied to set parameter "auto_explain\.log_level"/,
138+
qr/WARNING: ( 42501:)? permission denied to set parameter "auto_explain\.log_level"/,
139139
"permission failure logged");
140140

141141
} # end queries run as regress_user1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy