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

Function pg_decode_stream_stop

contrib/test_decoding/test_decoding.c:782–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780}
781
782static void
783pg_decode_stream_stop(LogicalDecodingContext *ctx,
784 ReorderBufferTXN *txn)
785{
786 TestDecodingData *data = ctx->output_plugin_private;
787 TestDecodingTxnData *txndata = txn->output_plugin_private;
788
789 if (data->skip_empty_xacts && !txndata->stream_wrote_changes)
790 return;
791
792 OutputPluginPrepareWrite(ctx, true);
793 if (data->include_xids)
794 appendStringInfo(ctx->out, "closing a streamed block for transaction TXN %u", txn->xid);
795 else
796 appendStringInfoString(ctx->out, "closing a streamed block for transaction");
797 OutputPluginWrite(ctx, true);
798}
799
800static void
801pg_decode_stream_abort(LogicalDecodingContext *ctx,

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected