@@ -93,7 +93,7 @@ convert_and_check_filename(text *arg, bool logAllowed)
93
93
if (path_contains_parent_reference (filename ))
94
94
ereport (ERROR ,
95
95
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
96
- ( errmsg ("reference to parent directory (\"..\") not allowed" ) )));
96
+ errmsg ("reference to parent directory (\"..\") not allowed" )));
97
97
98
98
/*
99
99
* Allow absolute paths if within DataDir or Log_directory, even
@@ -104,12 +104,12 @@ convert_and_check_filename(text *arg, bool logAllowed)
104
104
!path_is_prefix_of_path (Log_directory , filename )))
105
105
ereport (ERROR ,
106
106
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
107
- ( errmsg ("absolute path not allowed" ) )));
107
+ errmsg ("absolute path not allowed" )));
108
108
}
109
109
else if (!path_is_relative_and_below_cwd (filename ))
110
110
ereport (ERROR ,
111
111
(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" )));
113
113
114
114
return filename ;
115
115
}
@@ -124,7 +124,7 @@ requireSuperuser(void)
124
124
if (!superuser ())
125
125
ereport (ERROR ,
126
126
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
127
- ( errmsg ("only superuser may access generic file functions" ) )));
127
+ errmsg ("only superuser may access generic file functions" )));
128
128
}
129
129
130
130
@@ -485,7 +485,7 @@ pg_logdir_ls(PG_FUNCTION_ARGS)
485
485
if (!superuser ())
486
486
ereport (ERROR ,
487
487
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
488
- ( errmsg ("only superuser can list the log directory" ) )));
488
+ errmsg ("only superuser can list the log directory" )));
489
489
490
490
return (pg_logdir_ls_internal (fcinfo ));
491
491
}
@@ -515,7 +515,7 @@ pg_logdir_ls_internal(FunctionCallInfo fcinfo)
515
515
if (strcmp (Log_filename , "postgresql-%Y-%m-%d_%H%M%S.log" ) != 0 )
516
516
ereport (ERROR ,
517
517
(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'" )));
519
519
520
520
if (SRF_IS_FIRSTCALL ())
521
521
{
0 commit comments