@@ -93,7 +93,7 @@ convert_and_check_filename(text *arg, bool logAllowed)
9393 if (path_contains_parent_reference (filename ))
9494 ereport (ERROR ,
9595 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
96- ( errmsg ("reference to parent directory (\"..\") not allowed" ) )));
96+ errmsg ("reference to parent directory (\"..\") not allowed" )));
9797
9898 /*
9999 * Allow absolute paths if within DataDir or Log_directory, even
@@ -104,12 +104,12 @@ convert_and_check_filename(text *arg, bool logAllowed)
104104 !path_is_prefix_of_path (Log_directory , filename )))
105105 ereport (ERROR ,
106106 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
107- ( errmsg ("absolute path not allowed" ) )));
107+ errmsg ("absolute path not allowed" )));
108108 }
109109 else if (!path_is_relative_and_below_cwd (filename ))
110110 ereport (ERROR ,
111111 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
112- ( errmsg ("path must be in or below the current directory" ) )));
112+ errmsg ("path must be in or below the current directory" )));
113113
114114 return filename ;
115115}
@@ -124,7 +124,7 @@ requireSuperuser(void)
124124 if (!superuser ())
125125 ereport (ERROR ,
126126 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
127- ( errmsg ("only superuser may access generic file functions" ) )));
127+ errmsg ("only superuser may access generic file functions" )));
128128}
129129
130130
@@ -485,7 +485,7 @@ pg_logdir_ls(PG_FUNCTION_ARGS)
485485 if (!superuser ())
486486 ereport (ERROR ,
487487 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
488- ( errmsg ("only superuser can list the log directory" ) )));
488+ errmsg ("only superuser can list the log directory" )));
489489
490490 return (pg_logdir_ls_internal (fcinfo ));
491491}
@@ -515,7 +515,7 @@ pg_logdir_ls_internal(FunctionCallInfo fcinfo)
515515 if (strcmp (Log_filename , "postgresql-%Y-%m-%d_%H%M%S.log" ) != 0 )
516516 ereport (ERROR ,
517517 (errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
518- ( errmsg ("the log_filename parameter must equal 'postgresql-%%Y-%%m-%%d_%%H%%M%%S.log'" ) )));
518+ errmsg ("the log_filename parameter must equal 'postgresql-%%Y-%%m-%%d_%%H%%M%%S.log'" )));
519519
520520 if (SRF_IS_FIRSTCALL ())
521521 {
0 commit comments