diff --git a/src/backend/postmaster/syslogger.c b/src/backend/postmaster/syslogger.c index faa0b11..f71114d 100644 --- a/src/backend/postmaster/syslogger.c +++ b/src/backend/postmaster/syslogger.c @@ -304,7 +304,7 @@ SysLoggerMain(int argc, char *argv[]) */ if (got_SIGHUP) { - int old_log_destination; + PGLogDestination old_log_destination; got_SIGHUP = false; old_log_destination = Log_destination; diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index 70dc365..34d4926 100644 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -386,7 +386,8 @@ typedef enum extern int Log_error_verbosity; extern char *Log_line_prefix; -extern int Log_destination; +typedef int PGLogDestination; +extern PGLogDestination Log_destination; extern char *Log_destination_string; extern bool syslog_sequence_numbers; extern bool syslog_split_messages;