|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| struct | ConflictTupleInfo |
Macros | |
| #define | CONFLICT_NUM_TYPES (CT_MULTIPLE_UNIQUE_CONFLICTS + 1) |
Typedefs | |
| typedef struct EState | EState |
| typedef struct ResultRelInfo | ResultRelInfo |
| typedef struct TupleTableSlot | TupleTableSlot |
| typedef struct ConflictTupleInfo | ConflictTupleInfo |
Enumerations | |
| enum | ConflictType { CT_INSERT_EXISTS , CT_UPDATE_ORIGIN_DIFFERS , CT_UPDATE_EXISTS , CT_UPDATE_DELETED , CT_UPDATE_MISSING , CT_DELETE_ORIGIN_DIFFERS , CT_DELETE_MISSING , CT_MULTIPLE_UNIQUE_CONFLICTS } |
Functions | |
| bool | GetTupleTransactionInfo (TupleTableSlot *localslot, TransactionId *xmin, RepOriginId *localorigin, TimestampTz *localts) |
| void | ReportApplyConflict (EState *estate, ResultRelInfo *relinfo, int elevel, ConflictType type, TupleTableSlot *searchslot, TupleTableSlot *remoteslot, List *conflicttuples) |
| void | InitConflictIndexes (ResultRelInfo *relInfo) |
| #define CONFLICT_NUM_TYPES (CT_MULTIPLE_UNIQUE_CONFLICTS + 1) |
Definition at line 64 of file conflict.h.
Definition at line 18 of file conflict.h.
Definition at line 19 of file conflict.h.
| Enumerator | |
|---|---|
| CT_INSERT_EXISTS | |
| CT_UPDATE_ORIGIN_DIFFERS | |
| CT_UPDATE_EXISTS | |
| CT_UPDATE_DELETED | |
| CT_UPDATE_MISSING | |
| CT_DELETE_ORIGIN_DIFFERS | |
| CT_DELETE_MISSING | |
| CT_MULTIPLE_UNIQUE_CONFLICTS | |
Definition at line 31 of file conflict.h.
|
extern |
Definition at line 63 of file conflict.c.
References Assert, DatumGetTransactionId(), fb(), InvalidRepOriginId, MinTransactionIdAttributeNumber, slot_getsysattr(), track_commit_timestamp, and TransactionIdGetCommitTsData().
Referenced by apply_handle_delete_internal(), apply_handle_tuple_routing(), apply_handle_update_internal(), and CheckAndReportConflict().
|
extern |
Definition at line 139 of file conflict.c.
References fb(), i, lappend_oid(), NIL, RelationData::rd_index, and RelationGetRelid.
Referenced by apply_handle_insert_internal(), apply_handle_tuple_routing(), and apply_handle_update_internal().
|
extern |
Definition at line 104 of file conflict.c.
References ConflictTypeNames, ereport, errcode_apply_conflict(), errdetail_apply_conflict(), errdetail_internal(), errmsg(), fb(), foreach_ptr, get_namespace_name(), initStringInfo(), MySubscription, Subscription::oid, pgstat_report_subscription_conflict(), RelationGetNamespace, RelationGetRelationName, and type.
Referenced by apply_handle_delete_internal(), apply_handle_tuple_routing(), apply_handle_update_internal(), and CheckAndReportConflict().