pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Japin Li <japinli@hotmail.com>
Subject: [PATCH v4 1/1] Add hint message for check_log_destination
Date: Fri, 14 Jul 2023 09:26:01 +0800

---
 src/backend/utils/error/elog.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

inline patch 1: src/backend/utils/error/elog.c (+14/-0 lines) download inline-1.patchdiff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index 5898100acb..dccbabf40a 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -2228,8 +2228,22 @@ check_log_destination(char **newval, void **extra, GucSource source) #endif else { + StringInfoData errhint; + + initStringInfo(&errhint); + appendStringInfoString(&errhint, "stderr"); +#ifdef HAVE_SYSLOG + appendStringInfoString(&errhint, ", syslog"); +#endif +#ifdef WIN32 + appendStringInfoString(&errhint, ", eventlog"); +#endif + appendStringInfoString(&errhint, ", csvlog, and jsonlog"); + GUC_check_errdetail("Unrecognized key word: \"%s\".", tok); + GUC_check_errhint("Valid values are combinations of %s.", errhint.data); pfree(rawstring); + pfree(errhint.data); list_free(elemlist); return false; } -- 2.41.0
--=-=-=--

Message-ID: <no-message-id-92200@localhost>
Permalink:  ../no-message-id-92200@localhost/
Also on:    postgresql.org/message-id/no-message-id-92200@localhost

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: japinli@hotmail.com
  Subject: Re: [PATCH v4 1/1] Add hint message for check_log_destination
  In-Reply-To: <no-message-id-92200@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox