PostgreSQL Source Code
git master
|
#include "replication/reorderbuffer.h"
Go to the source code of this file.
Data Structures | |
struct | OutputPluginOptions |
struct | OutputPluginCallbacks |
Enumerations | |
enum | OutputPluginOutputType { OUTPUT_PLUGIN_BINARY_OUTPUT , OUTPUT_PLUGIN_TEXTUAL_OUTPUT } |
Functions | |
void | OutputPluginPrepareWrite (struct LogicalDecodingContext *ctx, bool last_write) |
void | OutputPluginWrite (struct LogicalDecodingContext *ctx, bool last_write) |
void | OutputPluginUpdateProgress (struct LogicalDecodingContext *ctx, bool skipped_xact) |
typedef void(* LogicalDecodeBeginCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn) |
Definition at line 53 of file output_plugin.h.
typedef void(* LogicalDecodeBeginPrepareCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn) |
Definition at line 115 of file output_plugin.h.
typedef void(* LogicalDecodeChangeCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, Relation relation, ReorderBufferChange *change) |
Definition at line 59 of file output_plugin.h.
typedef void(* LogicalDecodeCommitCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr commit_lsn) |
Definition at line 76 of file output_plugin.h.
typedef void(* LogicalDecodeCommitPreparedCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr commit_lsn) |
Definition at line 129 of file output_plugin.h.
typedef bool(* LogicalDecodeFilterByOriginCB) (struct LogicalDecodingContext *ctx, RepOriginId origin_id) |
Definition at line 94 of file output_plugin.h.
typedef bool(* LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx, TransactionId xid, const char *gid) |
Definition at line 108 of file output_plugin.h.
typedef void(* LogicalDecodeMessageCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr message_lsn, bool transactional, const char *prefix, Size message_size, const char *message) |
Definition at line 83 of file output_plugin.h.
typedef void(* LogicalDecodePrepareCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr prepare_lsn) |
Definition at line 122 of file output_plugin.h.
typedef void(* LogicalDecodeRollbackPreparedCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr prepare_end_lsn, TimestampTz prepare_time) |
Definition at line 136 of file output_plugin.h.
typedef void(* LogicalDecodeShutdownCB) (struct LogicalDecodingContext *ctx) |
Definition at line 100 of file output_plugin.h.
typedef void(* LogicalDecodeStartupCB) (struct LogicalDecodingContext *ctx, OutputPluginOptions *options, bool is_init) |
Definition at line 45 of file output_plugin.h.
typedef void(* LogicalDecodeStreamAbortCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr abort_lsn) |
Definition at line 162 of file output_plugin.h.
typedef void(* LogicalDecodeStreamChangeCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, Relation relation, ReorderBufferChange *change) |
Definition at line 185 of file output_plugin.h.
typedef void(* LogicalDecodeStreamCommitCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr commit_lsn) |
Definition at line 178 of file output_plugin.h.
typedef void(* LogicalDecodeStreamMessageCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr message_lsn, bool transactional, const char *prefix, Size message_size, const char *message) |
Definition at line 194 of file output_plugin.h.
typedef void(* LogicalDecodeStreamPrepareCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr prepare_lsn) |
Definition at line 170 of file output_plugin.h.
typedef void(* LogicalDecodeStreamStartCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn) |
Definition at line 147 of file output_plugin.h.
typedef void(* LogicalDecodeStreamStopCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn) |
Definition at line 155 of file output_plugin.h.
typedef void(* LogicalDecodeStreamTruncateCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, int nrelations, Relation relations[], ReorderBufferChange *change) |
Definition at line 205 of file output_plugin.h.
typedef void(* LogicalDecodeTruncateCB) (struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, int nrelations, Relation relations[], ReorderBufferChange *change) |
Definition at line 67 of file output_plugin.h.
typedef void(* LogicalOutputPluginInit) (struct OutputPluginCallbacks *cb) |
Definition at line 36 of file output_plugin.h.
typedef struct OutputPluginCallbacks OutputPluginCallbacks |
typedef struct OutputPluginOptions OutputPluginOptions |
typedef enum OutputPluginOutputType OutputPluginOutputType |
Enumerator | |
---|---|
OUTPUT_PLUGIN_BINARY_OUTPUT | |
OUTPUT_PLUGIN_TEXTUAL_OUTPUT |
Definition at line 17 of file output_plugin.h.
void OutputPluginPrepareWrite | ( | struct LogicalDecodingContext * | ctx, |
bool | last_write | ||
) |
Definition at line 649 of file logical.c.
References LogicalDecodingContext::accept_writes, elog, ERROR, LogicalDecodingContext::prepare_write, LogicalDecodingContext::prepared_write, LogicalDecodingContext::write_location, and LogicalDecodingContext::write_xid.
Referenced by pg_decode_change(), pg_decode_commit_prepared_txn(), pg_decode_commit_txn(), pg_decode_message(), pg_decode_prepare_txn(), pg_decode_rollback_prepared_txn(), pg_decode_stream_abort(), pg_decode_stream_change(), pg_decode_stream_commit(), pg_decode_stream_message(), pg_decode_stream_prepare(), pg_decode_stream_stop(), pg_decode_stream_truncate(), pg_decode_truncate(), pg_output_begin(), pg_output_stream_start(), pgoutput_begin_prepare_txn(), pgoutput_change(), pgoutput_commit_prepared_txn(), pgoutput_commit_txn(), pgoutput_message(), pgoutput_prepare_txn(), pgoutput_rollback_prepared_txn(), pgoutput_send_begin(), pgoutput_stream_abort(), pgoutput_stream_commit(), pgoutput_stream_prepare_txn(), pgoutput_stream_start(), pgoutput_stream_stop(), pgoutput_truncate(), send_relation_and_attrs(), and send_repl_origin().
void OutputPluginUpdateProgress | ( | struct LogicalDecodingContext * | ctx, |
bool | skipped_xact | ||
) |
Definition at line 675 of file logical.c.
References LogicalDecodingContext::update_progress, LogicalDecodingContext::write_location, and LogicalDecodingContext::write_xid.
Referenced by update_replication_progress().
void OutputPluginWrite | ( | struct LogicalDecodingContext * | ctx, |
bool | last_write | ||
) |
Definition at line 662 of file logical.c.
References elog, ERROR, LogicalDecodingContext::prepared_write, LogicalDecodingContext::write, LogicalDecodingContext::write_location, and LogicalDecodingContext::write_xid.
Referenced by pg_decode_change(), pg_decode_commit_prepared_txn(), pg_decode_commit_txn(), pg_decode_message(), pg_decode_prepare_txn(), pg_decode_rollback_prepared_txn(), pg_decode_stream_abort(), pg_decode_stream_change(), pg_decode_stream_commit(), pg_decode_stream_message(), pg_decode_stream_prepare(), pg_decode_stream_stop(), pg_decode_stream_truncate(), pg_decode_truncate(), pg_output_begin(), pg_output_stream_start(), pgoutput_begin_prepare_txn(), pgoutput_change(), pgoutput_commit_prepared_txn(), pgoutput_commit_txn(), pgoutput_message(), pgoutput_prepare_txn(), pgoutput_rollback_prepared_txn(), pgoutput_send_begin(), pgoutput_stream_abort(), pgoutput_stream_commit(), pgoutput_stream_prepare_txn(), pgoutput_stream_start(), pgoutput_stream_stop(), pgoutput_truncate(), send_relation_and_attrs(), and send_repl_origin().