Skip to content

Commit df36e4a

Browse files
japinlihackorum
authored andcommitted
Add hint message for check_log_destination
1 parent db0c984 commit df36e4a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/backend/utils/error/elog.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,8 +2716,22 @@ check_log_destination(char **newval, void **extra, GucSource source)
27162716
#endif
27172717
else
27182718
{
2719+
StringInfoData errhint;
2720+
2721+
initStringInfo(&errhint);
2722+
appendStringInfoString(&errhint, "stderr");
2723+
#ifdef HAVE_SYSLOG
2724+
appendStringInfoString(&errhint, ", syslog");
2725+
#endif
2726+
#ifdef WIN32
2727+
appendStringInfoString(&errhint, ", eventlog");
2728+
#endif
2729+
appendStringInfoString(&errhint, ", csvlog, and jsonlog");
2730+
27192731
GUC_check_errdetail("Unrecognized key word: \"%s\".", tok);
2732+
GUC_check_errhint("Valid values are combinations of %s.", errhint.data);
27202733
pfree(rawstring);
2734+
pfree(errhint.data);
27212735
list_free(elemlist);
27222736
return false;
27232737
}

0 commit comments

Comments
 (0)