BEGIN callback */
| 290 | |
| 291 | /* BEGIN callback */ |
| 292 | static void |
| 293 | pg_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 | |
| 308 | static void |
| 309 | pg_output_begin(LogicalDecodingContext *ctx, TestDecodingData *data, ReorderBufferTXN *txn, bool last_write) |
nothing calls this directly
no test coverage detected