59 bool transactional,
const char *prefix,
60 Size sz,
const char *message);
106#define NUM_ROWFILTER_PUBACTIONS (PUBACTION_DELETE+1)
292 bool protocol_version_given =
false;
293 bool publication_names_given =
false;
294 bool binary_option_given =
false;
295 bool messages_option_given =
false;
296 bool streaming_given =
false;
297 bool two_phase_option_given =
false;
298 bool origin_option_given =
false;
300 data->binary =
false;
301 data->streaming = LOGICALREP_STREAM_OFF;
302 data->messages =
false;
303 data->two_phase =
false;
312 if (strcmp(defel->
defname,
"proto_version") == 0)
314 unsigned long parsed;
317 if (protocol_version_given)
319 (
errcode(ERRCODE_SYNTAX_ERROR),
320 errmsg(
"conflicting or redundant options")));
321 protocol_version_given =
true;
324 parsed = strtoul(
strVal(defel->
arg), &endptr, 10);
325 if (errno != 0 || *endptr !=
'\0')
327 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
328 errmsg(
"invalid proto_version")));
332 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
333 errmsg(
"proto_version \"%s\" out of range",
338 else if (strcmp(defel->
defname,
"publication_names") == 0)
340 if (publication_names_given)
342 (
errcode(ERRCODE_SYNTAX_ERROR),
343 errmsg(
"conflicting or redundant options")));
344 publication_names_given =
true;
347 &
data->publication_names))
349 (
errcode(ERRCODE_INVALID_NAME),
350 errmsg(
"invalid publication_names syntax")));
352 else if (strcmp(defel->
defname,
"binary") == 0)
354 if (binary_option_given)
356 (
errcode(ERRCODE_SYNTAX_ERROR),
357 errmsg(
"conflicting or redundant options")));
358 binary_option_given =
true;
362 else if (strcmp(defel->
defname,
"messages") == 0)
364 if (messages_option_given)
366 (
errcode(ERRCODE_SYNTAX_ERROR),
367 errmsg(
"conflicting or redundant options")));
368 messages_option_given =
true;
372 else if (strcmp(defel->
defname,
"streaming") == 0)
376 (
errcode(ERRCODE_SYNTAX_ERROR),
377 errmsg(
"conflicting or redundant options")));
378 streaming_given =
true;
382 else if (strcmp(defel->
defname,
"two_phase") == 0)
384 if (two_phase_option_given)
386 (
errcode(ERRCODE_SYNTAX_ERROR),
387 errmsg(
"conflicting or redundant options")));
388 two_phase_option_given =
true;
392 else if (strcmp(defel->
defname,
"origin") == 0)
396 if (origin_option_given)
399 errmsg(
"conflicting or redundant options"));
400 origin_option_given =
true;
404 data->publish_no_origin =
true;
406 data->publish_no_origin =
false;
409 errcode(ERRCODE_INVALID_PARAMETER_VALUE),
410 errmsg(
"unrecognized origin value: \"%s\"", origin));
417 if (!protocol_version_given)
419 errcode(ERRCODE_INVALID_PARAMETER_VALUE),
420 errmsg(
"option \"%s\" missing",
"proto_version"));
421 if (!publication_names_given)
423 errcode(ERRCODE_INVALID_PARAMETER_VALUE),
424 errmsg(
"option \"%s\" missing",
"publication_names"));
435 static bool publication_callback_registered =
false;
439 "logical replication output context",
443 "logical replication cache context",
447 "logical replication publication list context",
468 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
469 errmsg(
"client sent proto_version=%d but server only supports protocol %d or lower",
474 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
475 errmsg(
"client sent proto_version=%d but server only supports protocol %d or higher",
484 if (
data->streaming == LOGICALREP_STREAM_OFF)
486 else if (
data->streaming == LOGICALREP_STREAM_ON &&
489 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
490 errmsg(
"requested proto_version=%d does not support streaming, need %d or higher",
492 else if (
data->streaming == LOGICALREP_STREAM_PARALLEL &&
495 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
496 errmsg(
"requested proto_version=%d does not support parallel streaming, need %d or higher",
500 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
501 errmsg(
"streaming requested, but not supported by output plugin")));
510 if (!
data->two_phase)
514 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
515 errmsg(
"requested proto_version=%d does not support two-phase commit, need %d or higher",
519 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
520 errmsg(
"two-phase commit requested, but not supported by output plugin")));
532 if (!publication_callback_registered)
539 publication_callback_registered =
true;
594 send_replication_origin);
622 elog(
DEBUG1,
"skipped replication of an empty transaction with XID: %u", txn->
xid);
643 send_replication_origin);
735 if (
data->in_streaming)
759 if (
data->in_streaming)
791 include_gencols_type))
804 include_gencols_type);
824 rte->relkind = rel->
rd_rel->relkind;
853 elog(
DEBUG3,
"row filter evaluates to %s (isnull: %s)",
854 isnull ?
"false" :
DatumGetBool(ret) ?
"true" :
"false",
855 isnull ?
"true" :
"false");
878 "entry private context",
894 bool no_filter[] = {
false,
false,
false};
897 bool has_filter =
true;
915 foreach(lc, publications)
920 bool pub_no_filter =
true;
944 Anum_pg_publication_rel_prqual,
1018 foreach(lc, rfnodes[
idx])
1041 bool gencolpresent =
false;
1045 for (
int i = 0;
i < desc->
natts;
i++)
1049 if (att->attgenerated)
1051 gencolpresent =
true;
1084 errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
1085 errmsg(
"cannot use different values of publish_generated_columns for table \"%s.%s\" in different publications",
1101 bool found_pub_collist =
false;
1119 foreach(lc, publications)
1161 errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
1162 errmsg(
"cannot use different column lists for table \"%s.%s\" in different publications",
1171 if (!found_pub_collist)
1292 static const int map_changetype_pubaction[] = {
1302 Assert(new_slot || old_slot);
1305 filter_exprstate = entry->
exprstate[map_changetype_pubaction[*
action]];
1308 if (!filter_exprstate)
1311 elog(
DEBUG3,
"table \"%s.%s\" has row filter",
1334 if (!new_slot || !old_slot)
1351 tmp_new_slot = NULL;
1386 desc->
natts *
sizeof(
bool));
1411 if (!old_matched && !new_matched)
1423 if (!old_matched && new_matched)
1428 *new_slot_ptr = tmp_new_slot;
1438 else if (old_matched && !new_matched)
1478 if (
data->in_streaming)
1505 elog(
DEBUG1,
"didn't send DELETE change because of missing oldtuple");
1521 targetrel = ancestor;
1570 if (txndata && !txndata->sent_begin_txn)
1640 if (
data->in_streaming)
1648 for (
i = 0;
i < nrelations;
i++)
1665 if (relation->
rd_rel->relispartition &&
1669 relids[nrelids++] = relid;
1672 if (txndata && !txndata->sent_begin_txn)
1696 XLogRecPtr message_lsn,
bool transactional,
const char *prefix,
Size sz,
1697 const char *message)
1709 if (
data->in_streaming)
1782 foreach(lc, pubnames)
1784 char *pubname = (
char *)
lfirst(lc);
1788 result =
lappend(result, pub);
1791 errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
1792 errmsg(
"skipped loading publication: %s", pubname),
1793 errdetail(
"The publication does not exist at this point in the WAL."),
1794 errhint(
"Create the publication if it does not exist."));
1829 send_replication_origin =
false;
1835 send_replication_origin);
1840 data->in_streaming =
true;
1860 data->in_streaming =
false;
1874 bool write_abort_info = (
data->streaming == LOGICALREP_STREAM_PARALLEL);
1952 static bool relation_callbacks_registered =
false;
1959 ctl.keysize =
sizeof(
Oid);
1961 ctl.hcxt = cachectx;
1970 if (relation_callbacks_registered)
1991 relation_callbacks_registered =
true;
2075 Oid publish_as_relid = relid;
2076 int publish_ancestor_level = 0;
2164 foreach(lc,
data->publications)
2167 bool publish =
false;
2174 Oid pub_relid = relid;
2175 int ancestor_level = 0;
2195 bool ancestor_published =
false;
2215 ancestor_published =
true;
2218 pub_relid = ancestor;
2219 ancestor_level = level;
2239 (relkind != RELKIND_PARTITIONED_TABLE || pub->
pubviaroot))
2253 if (publish_ancestor_level > ancestor_level)
2261 if (publish_ancestor_level < ancestor_level)
2263 publish_as_relid = pub_relid;
2264 publish_ancestor_level = ancestor_level;
2267 rel_publications =
NIL;
2272 Assert(publish_as_relid == pub_relid);
2276 rel_publications =
lappend(rel_publications, pub);
2342 if (xid == streamed_txn)
Datum idx(PG_FUNCTION_ARGS)
void free_attrmap(AttrMap *map)
AttrMap * build_attrmap_by_name_if_req(TupleDesc indesc, TupleDesc outdesc, bool missing_ok)
Bitmapset * bms_make_singleton(int x)
bool bms_equal(const Bitmapset *a, const Bitmapset *b)
void bms_free(Bitmapset *a)
static void cleanup(void)
#define TextDatumGetCString(d)
#define PG_USED_FOR_ASSERTS_ONLY
#define OidIsValid(objectId)
char * defGetString(DefElem *def)
bool defGetBoolean(DefElem *def)
void * hash_search(HTAB *hashp, const void *keyPtr, HASHACTION action, bool *foundPtr)
void hash_destroy(HTAB *hashp)
void * hash_seq_search(HASH_SEQ_STATUS *status)
HTAB * hash_create(const char *tabname, long nelem, const HASHCTL *info, int flags)
void hash_seq_init(HASH_SEQ_STATUS *status, HTAB *hashp)
int errdetail(const char *fmt,...)
int errhint(const char *fmt,...)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
ExprState * ExecPrepareExpr(Expr *node, EState *estate)
TupleTableSlot * MakeSingleTupleTableSlot(TupleDesc tupdesc, const TupleTableSlotOps *tts_ops)
const TupleTableSlotOps TTSOpsVirtual
void ExecDropSingleTupleTableSlot(TupleTableSlot *slot)
TupleTableSlot * ExecStoreVirtualTuple(TupleTableSlot *slot)
const TupleTableSlotOps TTSOpsHeapTuple
TupleTableSlot * MakeTupleTableSlot(TupleDesc tupleDesc, const TupleTableSlotOps *tts_ops)
TupleTableSlot * ExecStoreHeapTuple(HeapTuple tuple, TupleTableSlot *slot, bool shouldFree)
void ExecInitRangeTable(EState *estate, List *rangeTable, List *permInfos, Bitmapset *unpruned_relids)
EState * CreateExecutorState(void)
#define ResetPerTupleExprContext(estate)
#define GetPerTupleExprContext(estate)
static Datum ExecEvalExprSwitchContext(ExprState *state, ExprContext *econtext, bool *isNull)
Assert(PointerIsAligned(start, uint64))
#define HeapTupleIsValid(tuple)
void CacheRegisterRelcacheCallback(RelcacheCallbackFunction func, Datum arg)
void CacheRegisterRelSyncCallback(RelSyncCallbackFunction func, Datum arg)
void CacheRegisterSyscacheCallback(int cacheid, SyscacheCallbackFunction func, Datum arg)
if(TABLE==NULL||TABLE_index==NULL)
List * lappend(List *list, void *datum)
List * lappend_xid(List *list, TransactionId datum)
bool list_member_xid(const List *list, TransactionId datum)
void list_free(List *list)
bool list_member_oid(const List *list, Oid datum)
void list_free_deep(List *list)
void OutputPluginWrite(struct LogicalDecodingContext *ctx, bool last_write)
void OutputPluginUpdateProgress(struct LogicalDecodingContext *ctx, bool skipped_xact)
void OutputPluginPrepareWrite(struct LogicalDecodingContext *ctx, bool last_write)
#define LOGICALREP_PROTO_STREAM_PARALLEL_VERSION_NUM
#define LOGICALREP_PROTO_MIN_VERSION_NUM
#define LOGICALREP_PROTO_STREAM_VERSION_NUM
#define LOGICALREP_PROTO_TWOPHASE_VERSION_NUM
#define LOGICALREP_PROTO_MAX_VERSION_NUM
bool get_rel_relispartition(Oid relid)
char get_rel_relkind(Oid relid)
Oid get_rel_namespace(Oid relid)
char * get_namespace_name(Oid nspid)
Expr * make_orclause(List *orclauses)
void MemoryContextReset(MemoryContext context)
void * MemoryContextAllocZero(MemoryContext context, Size size)
void pfree(void *pointer)
void * palloc0(Size size)
MemoryContext CacheMemoryContext
void MemoryContextDelete(MemoryContext context)
#define AllocSetContextCreate
#define ALLOCSET_DEFAULT_SIZES
#define ALLOCSET_SMALL_SIZES
#define MemoryContextCopyAndSetIdentifier(cxt, id)
#define IsA(nodeptr, _type_)
bool replorigin_by_oid(RepOriginId roident, bool missing_ok, char **roname)
#define InvalidRepOriginId
@ OUTPUT_PLUGIN_BINARY_OUTPUT
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
RTEPermissionInfo * addRTEPermissionInfo(List **rteperminfos, RangeTblEntry *rte)
List * get_partition_ancestors(Oid relid)
FormData_pg_attribute * Form_pg_attribute
static int list_length(const List *l)
#define foreach_delete_current(lst, var_or_cell)
#define foreach_xid(var, lst)
#define foreach_ptr(type, var, lst)
List * GetRelationPublications(Oid relid)
Publication * GetPublicationByName(const char *pubname, bool missing_ok)
List * GetSchemaPublications(Oid schemaid)
Oid GetTopMostAncestorInPublication(Oid puboid, List *ancestors, int *ancestor_level)
Bitmapset * pub_form_cols_map(Relation relation, PublishGencolsType include_gencols_type)
bool check_and_fetch_column_list(Publication *pub, Oid relid, MemoryContext mcxt, Bitmapset **cols)
bool is_publishable_relation(Relation rel)
static List * LoadPublications(List *pubnames)
static void pgoutput_send_begin(LogicalDecodingContext *ctx, ReorderBufferTXN *txn)
static void rel_sync_cache_publication_cb(Datum arg, int cacheid, uint32 hashvalue)
struct RelationSyncEntry RelationSyncEntry
static void pgoutput_ensure_entry_cxt(PGOutputData *data, RelationSyncEntry *entry)
static void parse_output_parameters(List *options, PGOutputData *data)
static void init_tuple_slot(PGOutputData *data, Relation relation, RelationSyncEntry *entry)
static bool pgoutput_row_filter_exec_expr(ExprState *state, ExprContext *econtext)
static void pgoutput_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn, Relation relation, ReorderBufferChange *change)
#define NUM_ROWFILTER_PUBACTIONS
static void pgoutput_begin_prepare_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn)
struct PGOutputTxnData PGOutputTxnData
static void send_relation_and_attrs(Relation relation, TransactionId xid, LogicalDecodingContext *ctx, RelationSyncEntry *relentry)
static void pgoutput_startup(LogicalDecodingContext *ctx, OutputPluginOptions *opt, bool is_init)
static void pgoutput_truncate(LogicalDecodingContext *ctx, ReorderBufferTXN *txn, int nrelations, Relation relations[], ReorderBufferChange *change)
static void init_rel_sync_cache(MemoryContext cachectx)
static void rel_sync_cache_relation_cb(Datum arg, Oid relid)
static void pgoutput_prepare_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr prepare_lsn)
PG_MODULE_MAGIC_EXT(.name="pgoutput",.version=PG_VERSION)
static RelationSyncEntry * get_rel_sync_entry(PGOutputData *data, Relation relation)
static bool pgoutput_origin_filter(LogicalDecodingContext *ctx, RepOriginId origin_id)
static void send_repl_origin(LogicalDecodingContext *ctx, RepOriginId origin_id, XLogRecPtr origin_lsn, bool send_origin)
static void pgoutput_rollback_prepared_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr prepare_end_lsn, TimestampTz prepare_time)
static void pgoutput_shutdown(LogicalDecodingContext *ctx)
static void cleanup_rel_sync_cache(TransactionId xid, bool is_commit)
static void pgoutput_stream_abort(struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr abort_lsn)
static void pgoutput_stream_prepare_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr prepare_lsn)
static void maybe_send_schema(LogicalDecodingContext *ctx, ReorderBufferChange *change, Relation relation, RelationSyncEntry *relentry)
static void pgoutput_begin_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn)
static HTAB * RelationSyncCache
static void pgoutput_row_filter_init(PGOutputData *data, List *publications, RelationSyncEntry *entry)
static void pgoutput_stream_commit(struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr commit_lsn)
static void check_and_init_gencol(PGOutputData *data, List *publications, RelationSyncEntry *entry)
static void pgoutput_commit_prepared_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr commit_lsn)
static bool pgoutput_row_filter(Relation relation, TupleTableSlot *old_slot, TupleTableSlot **new_slot_ptr, RelationSyncEntry *entry, ReorderBufferChangeType *action)
static void set_schema_sent_in_streamed_txn(RelationSyncEntry *entry, TransactionId xid)
static void pgoutput_column_list_init(PGOutputData *data, List *publications, RelationSyncEntry *entry)
static void pgoutput_stream_stop(struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn)
static void pgoutput_stream_start(struct LogicalDecodingContext *ctx, ReorderBufferTXN *txn)
static void publication_invalidation_cb(Datum arg, int cacheid, uint32 hashvalue)
void _PG_output_plugin_init(OutputPluginCallbacks *cb)
static void pgoutput_message(LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr message_lsn, bool transactional, const char *prefix, Size sz, const char *message)
static void pgoutput_commit_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn, XLogRecPtr commit_lsn)
static bool publications_valid
static bool get_schema_sent_in_streamed_txn(RelationSyncEntry *entry, TransactionId xid)
static EState * create_estate_for_relation(Relation rel)
int pg_strcasecmp(const char *s1, const char *s2)
static bool DatumGetBool(Datum X)
static Datum ObjectIdGetDatum(Oid X)
void logicalrep_write_commit(StringInfo out, ReorderBufferTXN *txn, XLogRecPtr commit_lsn)
void logicalrep_write_rollback_prepared(StringInfo out, ReorderBufferTXN *txn, XLogRecPtr prepare_end_lsn, TimestampTz prepare_time)
void logicalrep_write_insert(StringInfo out, TransactionId xid, Relation rel, TupleTableSlot *newslot, bool binary, Bitmapset *columns, PublishGencolsType include_gencols_type)
void logicalrep_write_origin(StringInfo out, const char *origin, XLogRecPtr origin_lsn)
void logicalrep_write_rel(StringInfo out, TransactionId xid, Relation rel, Bitmapset *columns, PublishGencolsType include_gencols_type)
void logicalrep_write_stream_abort(StringInfo out, TransactionId xid, TransactionId subxid, XLogRecPtr abort_lsn, TimestampTz abort_time, bool write_abort_info)
void logicalrep_write_message(StringInfo out, TransactionId xid, XLogRecPtr lsn, bool transactional, const char *prefix, Size sz, const char *message)
void logicalrep_write_prepare(StringInfo out, ReorderBufferTXN *txn, XLogRecPtr prepare_lsn)
void logicalrep_write_typ(StringInfo out, TransactionId xid, Oid typoid)
void logicalrep_write_delete(StringInfo out, TransactionId xid, Relation rel, TupleTableSlot *oldslot, bool binary, Bitmapset *columns, PublishGencolsType include_gencols_type)
void logicalrep_write_truncate(StringInfo out, TransactionId xid, int nrelids, Oid relids[], bool cascade, bool restart_seqs)
void logicalrep_write_begin(StringInfo out, ReorderBufferTXN *txn)
void logicalrep_write_commit_prepared(StringInfo out, ReorderBufferTXN *txn, XLogRecPtr commit_lsn)
void logicalrep_write_stream_commit(StringInfo out, ReorderBufferTXN *txn, XLogRecPtr commit_lsn)
void logicalrep_write_stream_prepare(StringInfo out, ReorderBufferTXN *txn, XLogRecPtr prepare_lsn)
void logicalrep_write_begin_prepare(StringInfo out, ReorderBufferTXN *txn)
bool logicalrep_should_publish_column(Form_pg_attribute att, Bitmapset *columns, PublishGencolsType include_gencols_type)
void logicalrep_write_stream_start(StringInfo out, TransactionId xid, bool first_segment)
void logicalrep_write_update(StringInfo out, TransactionId xid, Relation rel, TupleTableSlot *oldslot, TupleTableSlot *newslot, bool binary, Bitmapset *columns, PublishGencolsType include_gencols_type)
void logicalrep_write_stream_stop(StringInfo out)
void * stringToNode(const char *str)
#define RelationGetRelid(relation)
#define RelationGetDescr(relation)
#define RelationGetRelationName(relation)
#define RelationIsValid(relation)
#define RelationGetNamespace(relation)
Relation RelationIdGetRelation(Oid relationId)
void RelationClose(Relation relation)
#define rbtxn_is_streamed(txn)
#define rbtxn_get_toptxn(txn)
#define rbtxn_is_subtxn(txn)
@ REORDER_BUFFER_CHANGE_INSERT
@ REORDER_BUFFER_CHANGE_DELETE
@ REORDER_BUFFER_CHANGE_UPDATE
Node * expand_generated_columns_in_expr(Node *node, Relation rel, int rt_index)
TupleTableSlot * ecxt_scantuple
void * output_plugin_private
List * output_plugin_options
LogicalDecodeStreamChangeCB stream_change_cb
LogicalDecodeMessageCB message_cb
LogicalDecodeStreamTruncateCB stream_truncate_cb
LogicalDecodeStreamMessageCB stream_message_cb
LogicalDecodeFilterByOriginCB filter_by_origin_cb
LogicalDecodeTruncateCB truncate_cb
LogicalDecodeStreamStopCB stream_stop_cb
LogicalDecodeStreamCommitCB stream_commit_cb
LogicalDecodeRollbackPreparedCB rollback_prepared_cb
LogicalDecodeStreamPrepareCB stream_prepare_cb
LogicalDecodeCommitPreparedCB commit_prepared_cb
LogicalDecodeStreamStartCB stream_start_cb
LogicalDecodePrepareCB prepare_cb
LogicalDecodeStartupCB startup_cb
LogicalDecodeCommitCB commit_cb
LogicalDecodeBeginCB begin_cb
LogicalDecodeStreamAbortCB stream_abort_cb
LogicalDecodeBeginPrepareCB begin_prepare_cb
LogicalDecodeChangeCB change_cb
LogicalDecodeShutdownCB shutdown_cb
OutputPluginOutputType output_type
PublicationActions pubactions
ExprState * exprstate[NUM_ROWFILTER_PUBACTIONS]
PublicationActions pubactions
TupleTableSlot * old_slot
PublishGencolsType include_gencols_type
TupleTableSlot * new_slot
struct ReorderBufferChange::@110::@112 truncate
ReorderBufferChangeType action
union ReorderBufferChange::@110 data
struct ReorderBufferTXN * txn
struct ReorderBufferChange::@110::@111 tp
void * output_plugin_private
union ReorderBufferTXN::@116 xact_time
TupleDesc tts_tupleDescriptor
char defGetStreamingMode(DefElem *def)
void ReleaseSysCache(HeapTuple tuple)
Datum SysCacheGetAttr(int cacheId, HeapTuple tup, AttrNumber attributeNumber, bool *isNull)
HeapTuple SearchSysCache2(int cacheId, Datum key1, Datum key2)
#define SearchSysCacheExists2(cacheId, key1, key2)
#define InvalidTransactionId
#define FirstGenbkiObjectId
TupleTableSlot * execute_attr_map_slot(AttrMap *attrMap, TupleTableSlot *in_slot, TupleTableSlot *out_slot)
TupleDesc CreateTupleDescCopyConstr(TupleDesc tupdesc)
void FreeTupleDesc(TupleDesc tupdesc)
static FormData_pg_attribute * TupleDescAttr(TupleDesc tupdesc, int i)
static CompactAttribute * TupleDescCompactAttr(TupleDesc tupdesc, int i)
static TupleTableSlot * ExecClearTuple(TupleTableSlot *slot)
static void slot_getallattrs(TupleTableSlot *slot)
#define VARATT_IS_EXTERNAL_ONDISK(PTR)
bool SplitIdentifierString(char *rawstring, char separator, List **namelist)
CommandId GetCurrentCommandId(bool used)
#define InvalidXLogRecPtr