71 bool escape_key,
const char *
fmt,...)
73 int save_errno = errno;
116 static long log_line_number = 0;
119 static int log_my_pid = 0;
uint64 pgstat_get_my_query_id(void)
#define Assert(condition)
#define pg_attribute_printf(f, a)
bool check_log_of_query(ErrorData *edata)
const char * error_severity(int elevel)
char * get_formatted_start_time(void)
void write_pipe_chunks(char *data, int len, int dest)
const char * get_backend_type_for_log(void)
char * get_formatted_log_time(void)
char * unpack_sql_state(int sql_state)
void reset_formatted_start_time(void)
#define LOG_DESTINATION_JSONLOG
void escape_json(StringInfo buf, const char *str)
void write_jsonlog(ErrorData *edata)
static void static void appendJSONKeyValue(StringInfo buf, const char *key, const char *value, bool escape_value)
static void appendJSONKeyValueFmt(StringInfo buf, const char *key, bool escape_key, const char *fmt,...) pg_attribute_printf(4
static void const char * fmt
void pfree(void *pointer)
BackendType MyBackendType
const char * debug_query_string
#define INVALID_PROC_NUMBER
const char * get_ps_display(int *displen)
size_t pvsnprintf(char *buf, size_t len, const char *fmt, va_list args)
void appendBinaryStringInfo(StringInfo str, const void *data, int datalen)
void appendStringInfoString(StringInfo str, const char *s)
void appendStringInfoChar(StringInfo str, char ch)
void initStringInfo(StringInfo str)
void write_syslogger_file(const char *buffer, int count, int destination)
TransactionId GetTopTransactionIdIfAny(void)