COMMIT PREPARED callback */
| 389 | |
| 390 | /* COMMIT PREPARED callback */ |
| 391 | static void |
| 392 | pg_decode_commit_prepared_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn, |
| 393 | XLogRecPtr commit_lsn) |
| 394 | { |
| 395 | TestDecodingData *data = ctx->output_plugin_private; |
| 396 | |
| 397 | OutputPluginPrepareWrite(ctx, true); |
| 398 | |
| 399 | appendStringInfo(ctx->out, "COMMIT PREPARED %s", |
| 400 | quote_literal_cstr(txn->gid)); |
| 401 | |
| 402 | if (data->include_xids) |
| 403 | appendStringInfo(ctx->out, ", txid %u", txn->xid); |
| 404 | |
| 405 | if (data->include_timestamp) |
| 406 | appendStringInfo(ctx->out, " (at %s)", |
| 407 | timestamptz_to_str(txn->commit_time)); |
| 408 | |
| 409 | OutputPluginWrite(ctx, true); |
| 410 | } |
| 411 | |
| 412 | /* ROLLBACK PREPARED callback */ |
| 413 | static void |
nothing calls this directly
no test coverage detected