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

Function pg_output_begin

contrib/test_decoding/test_decoding.c:308–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308static void
309pg_output_begin(LogicalDecodingContext *ctx, TestDecodingData *data, ReorderBufferTXN *txn, bool last_write)
310{
311 OutputPluginPrepareWrite(ctx, last_write);
312 if (data->include_xids)
313 appendStringInfo(ctx->out, "BEGIN %u", txn->xid);
314 else
315 appendStringInfoString(ctx->out, "BEGIN");
316 OutputPluginWrite(ctx, last_write);
317}
318
319/* COMMIT callback */
320static void

Callers 4

pg_decode_begin_txnFunction · 0.85
pg_decode_changeFunction · 0.85
pg_decode_truncateFunction · 0.85

Calls 4

OutputPluginPrepareWriteFunction · 0.85
appendStringInfoFunction · 0.85
appendStringInfoStringFunction · 0.85
OutputPluginWriteFunction · 0.85

Tested by

no test coverage detected