* Returns true for streamed transactions, false otherwise (regular mode).
*/
static bool
-handle_streamed_transaction(const char action, StringInfo s)
+handle_streamed_transaction(LogicalRepMsgType action, StringInfo s)
{
TransactionId xid;
{
LogicalRepRelation *rel;
- if (handle_streamed_transaction('R', s))
+ if (handle_streamed_transaction(LOGICAL_REP_MSG_RELATION, s))
return;
rel = logicalrep_read_rel(s);
{
LogicalRepTyp typ;
- if (handle_streamed_transaction('Y', s))
+ if (handle_streamed_transaction(LOGICAL_REP_MSG_TYPE, s))
return;
logicalrep_read_typ(s, &typ);
TupleTableSlot *remoteslot;
MemoryContext oldctx;
- if (handle_streamed_transaction('I', s))
+ if (handle_streamed_transaction(LOGICAL_REP_MSG_INSERT, s))
return;
ensure_transaction();
RangeTblEntry *target_rte;
MemoryContext oldctx;
- if (handle_streamed_transaction('U', s))
+ if (handle_streamed_transaction(LOGICAL_REP_MSG_UPDATE, s))
return;
ensure_transaction();
TupleTableSlot *remoteslot;
MemoryContext oldctx;
- if (handle_streamed_transaction('D', s))
+ if (handle_streamed_transaction(LOGICAL_REP_MSG_DELETE, s))
return;
ensure_transaction();
List *relids_logged = NIL;
ListCell *lc;
- if (handle_streamed_transaction('T', s))
+ if (handle_streamed_transaction(LOGICAL_REP_MSG_TRUNCATE, s))
return;
ensure_transaction();