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

Function pg_decode_begin_txn

contrib/test_decoding/test_decoding.c:292–306  ·  view source on GitHub ↗

BEGIN callback */

Source from the content-addressed store, hash-verified

290
291/* BEGIN callback */
292static void
293pg_decode_begin_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn)
294{
295 TestDecodingData *data = ctx->output_plugin_private;
296 TestDecodingTxnData *txndata =
297 MemoryContextAllocZero(ctx->context, sizeof(TestDecodingTxnData));
298
299 txndata->xact_wrote_changes = false;
300 txn->output_plugin_private = txndata;
301
302 if (data->skip_empty_xacts)
303 return;
304
305 pg_output_begin(ctx, data, txn, true);
306}
307
308static void
309pg_output_begin(LogicalDecodingContext *ctx, TestDecodingData *data, ReorderBufferTXN *txn, bool last_write)

Callers

nothing calls this directly

Calls 2

MemoryContextAllocZeroFunction · 0.85
pg_output_beginFunction · 0.85

Tested by

no test coverage detected