MCPcopy Create free account
hub / github.com/apache/cloudberry / pqTraceOutputByte1

Function pqTraceOutputByte1

src/interfaces/libpq/fe-trace.c:105–119  ·  view source on GitHub ↗

* pqTraceOutputByte1: output a 1-char message to the log */

Source from the content-addressed store, hash-verified

103 * pqTraceOutputByte1: output a 1-char message to the log
104 */
105static void
106pqTraceOutputByte1(FILE *pfdebug, const char *data, int *cursor)
107{
108 const char *v = data + *cursor;
109
110 /*
111 * Show non-printable data in hex format, including the terminating \0
112 * that completes ErrorResponse and NoticeResponse messages.
113 */
114 if (!isprint((unsigned char) *v))
115 fprintf(pfdebug, " \\x%02x", *v);
116 else
117 fprintf(pfdebug, " %c", *v);
118 *cursor += 1;
119}
120
121/*
122 * pqTraceOutputInt16: output a 2-byte integer message to the log

Callers 7

pqTraceOutputCFunction · 0.85
pqTraceOutputDFunction · 0.85
pqTraceOutputNRFunction · 0.85
pqTraceOutputGFunction · 0.85
pqTraceOutputHFunction · 0.85
pqTraceOutputWFunction · 0.85
pqTraceOutputZFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected