Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bfac42e

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 4323142 commit bfac42e

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
@@ -172,7 +172,7 @@ sub query_log
172172

173173
like(
174174
$log_contents,
175-
qr/WARNING: permission denied to set parameter "auto_explain\.log_level"/,
175+
qr/WARNING: ( 42501:)? permission denied to set parameter "auto_explain\.log_level"/,
176176
"permission failure logged");
177177

178178
} # end queries run as regress_user1

0 commit comments

Comments
 (0)