postgres.git / summary / log / commit / refs
commit e65f94982ed32d87daf53fb4d4067b2fe4a4df90
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sun Jul 31 16:29:44 2022 +0000
First released in: 16.0, 15.0
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 b998196bb and 19408aae7 (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
contrib/auto_explain/t/001_auto_explain.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/auto_explain/t/001_auto_explain.pl b/contrib/auto_explain/t/001_auto_explain.pl
index d49a92f1390..2f2e7fbed52 100644
--- a/contrib/auto_explain/t/001_auto_explain.pl
+++ b/contrib/auto_explain/t/001_auto_explain.pl
@@ -135,7 +135,7 @@ GRANT SET ON PARAMETER auto_explain.log_format TO regress_user1;
like(
$log_contents,
- qr/WARNING: permission denied to set parameter "auto_explain\.log_level"/,
+ qr/WARNING: ( 42501:)? permission denied to set parameter "auto_explain\.log_level"/,
"permission failure logged");
} # end queries run as regress_user1
[parent: a3699c599ced]