Modify tuptoaster's API so that it does not try to modify the passed
tuple in-place, but instead passes back an all-new tuple structure if any changes are needed. This is a much cleaner and more robust solution for the bug discovered by Alexey Beschiokov; accordingly, revert the quick hack I installed yesterday. With this change, HeapTupleData.t_datamcxt is no longer needed; will remove it in a separate commit in HEAD only.
Showing
- src/backend/access/heap/heapam.c 77 additions, 30 deletionssrc/backend/access/heap/heapam.c
- src/backend/access/heap/tuptoaster.c 34 additions, 40 deletionssrc/backend/access/heap/tuptoaster.c
- src/backend/executor/execMain.c 1 addition, 21 deletionssrc/backend/executor/execMain.c
- src/include/access/tuptoaster.h 12 additions, 10 deletionssrc/include/access/tuptoaster.h
Loading
Please register or sign in to comment