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

Function pg_decode_message

contrib/test_decoding/test_decoding.c:735–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735static void
736pg_decode_message(LogicalDecodingContext *ctx,
737 ReorderBufferTXN *txn, XLogRecPtr lsn, bool transactional,
738 const char *prefix, Size sz, const char *message)
739{
740 OutputPluginPrepareWrite(ctx, true);
741 appendStringInfo(ctx->out, "message: transactional: %d prefix: %s, sz: %zu content:",
742 transactional, prefix, sz);
743 appendBinaryStringInfo(ctx->out, message, sz);
744 OutputPluginWrite(ctx, true);
745}
746
747static void
748pg_decode_stream_start(LogicalDecodingContext *ctx,

Callers

nothing calls this directly

Calls 4

OutputPluginPrepareWriteFunction · 0.85
appendStringInfoFunction · 0.85
appendBinaryStringInfoFunction · 0.85
OutputPluginWriteFunction · 0.85

Tested by

no test coverage detected