47 while ((
c = *p++) !=
'\0')
66 bool print_stmt =
false;
69 static long log_line_number = 0;
72 static int log_my_pid = 0;
uint64 pgstat_get_my_query_id(void)
static void appendCSVLiteral(StringInfo buf, const char *data)
void write_csvlog(ErrorData *edata)
bool check_log_of_query(ErrorData *edata)
char * get_formatted_log_time(void)
const char * error_severity(int elevel)
const char * get_backend_type_for_log(void)
void write_pipe_chunks(char *data, int len, int dest)
char * unpack_sql_state(int sql_state)
char * get_formatted_start_time(void)
void reset_formatted_start_time(void)
#define LOG_DESTINATION_CSVLOG
void pfree(void *pointer)
BackendType MyBackendType
const char * debug_query_string
#define INVALID_PROC_NUMBER
const char * get_ps_display(int *displen)
void appendStringInfo(StringInfo str, const char *fmt,...)
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)
#define appendStringInfoCharMacro(str, ch)
void write_syslogger_file(const char *buffer, int count, int destination)
TransactionId GetTopTransactionIdIfAny(void)