Repository navigation
Commit 4fc8467
Fix CDC decoder compilation and tuple lifetime on PG15 and PG16
On PostgreSQL 15 and 16, ReorderBufferChange data.tp.newtuple and oldtuple
are ReorderBufferTupleBuf pointers rather than HeapTuples, and their pointers
are not replaced during translation. Guard originalNewTuple and originalOldTuple
restoration and freeing with PG_VERSION_NUM >= PG_VERSION_17.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d89d1f43-18ea-4405-bd1b-5c3129e391a91 parent b03e06d commit 4fc8467
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
271 | 272 | | |
272 | 273 | | |
| 274 | + | |
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
| |||
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
| 299 | + | |
297 | 300 | | |
298 | 301 | | |
299 | 302 | | |
| |||
307 | 310 | | |
308 | 311 | | |
309 | 312 | | |
| 313 | + | |
310 | 314 | | |
311 | 315 | | |
312 | 316 | | |
| |||
0 commit comments