- Notifications
You must be signed in to change notification settings - Fork5
Commit398cf25
committed
In GIN recompression code, use mmemove rather than memcpy, for vacuum.
When vacuuming a data leaf page, any compressed posting lists that are notmodified, are copied back to the buffer from a later location in the samebuffer rather than from a palloc'd copy. IOW, they are just moveddownwards in the same buffer. Because the source and destination addressescan overlap, we must use memmove rather than memcpy.Report and fix by Alexander Korotkov.1 parentfbe19ee commit398cf25
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
756 | 763 | | |
757 | 764 | | |
758 | 765 | | |
| |||
798 | 805 | | |
799 | 806 | | |
800 | 807 | | |
801 | | - | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
802 | 815 | | |
803 | 816 | | |
804 | 817 | | |
| |||
0 commit comments
Comments
(0)