@@ -56,8 +56,6 @@ static void pglogical_write_update(StringInfo out, PGLogicalOutputData *data,
56
56
static void pglogical_write_delete (StringInfo out , PGLogicalOutputData * data ,
57
57
Relation rel , HeapTuple oldtuple );
58
58
59
- #define IS_REPLICA_IDENTITY 1
60
-
61
59
static void pglogical_write_tuple (StringInfo out , PGLogicalOutputData * data ,
62
60
Relation rel , HeapTuple tuple );
63
61
static char decide_datum_transfer (Form_pg_attribute att ,
@@ -105,16 +103,8 @@ pglogical_write_begin(StringInfo out, PGLogicalOutputData *data,
105
103
if (MMIsLocalTransaction (txn -> xid )) {
106
104
mm -> isLocal = true;
107
105
} else {
108
- uint8 flags = 0 ;
109
106
mm -> isLocal = false;
110
107
pq_sendbyte (out , 'B' ); /* BEGIN */
111
-
112
- /* send the flags field its self */
113
- pq_sendbyte (out , flags );
114
-
115
- /* fixed fields */
116
- pq_sendint64 (out , txn -> final_lsn );
117
- pq_sendint64 (out , txn -> commit_time );
118
108
pq_sendint (out , txn -> xid , 4 );
119
109
}
120
110
}
@@ -128,16 +118,7 @@ pglogical_write_commit(StringInfo out, PGLogicalOutputData *data,
128
118
{
129
119
PGLogicalProtoMM * mm = (PGLogicalProtoMM * )data -> api ;
130
120
if (!mm -> isLocal ) {
131
- uint8 flags = 0 ;
132
121
pq_sendbyte (out , 'C' ); /* sending COMMIT */
133
-
134
- /* send the flags field */
135
- pq_sendbyte (out , flags );
136
-
137
- /* send fixed fields */
138
- pq_sendint64 (out , commit_lsn );
139
- pq_sendint64 (out , txn -> end_lsn );
140
- pq_sendint64 (out , txn -> commit_time );
141
122
}
142
123
}
143
124
0 commit comments