forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitabc0910

Amit Kapila
Add logical change details to logical replication worker errcontext.
Previously, on the subscriber, we set the error context callback for thetuple data conversion failures. This commit replaces the existing errorcontext callback with a comprehensive one so that it shows not only thedetails of data conversion failures but also the details of logical changebeing applied by the apply worker or table sync worker. The additionalinformation displayed will be the command, transaction id, and timestamp.The error context is added to an error only when applying a change but notwhile doing other work like receiving data etc.This will help users in diagnosing the problems that occur during logicalreplication. It also can be used for future work that allows skipping aparticular transaction on the subscriber.Author: Masahiko SawadaReviewed-by: Hou Zhijie, Greg Nancarrow, Haiying Tang, Amit KapilaTested-by: Haiying TangDiscussion:https://postgr.es/m/CAD21AoDeScrsHhLyEPYqN3sydg6PxAPVBboK=30xJfUVihNZDA@mail.gmail.com1 parent191dce1 commitabc0910
File tree
4 files changed
+235
-80
lines changed- src
- backend/replication/logical
- include/replication
- tools/pgindent
4 files changed
+235
-80
lines changedLines changed: 53 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1156 | 1156 |
| |
1157 | 1157 |
| |
1158 | 1158 |
| |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + |
0 commit comments
Comments
(0)