- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit225ebfe
committed
Add regression test for short varlenas saved in TOAST relations
toast_save_datum() has for a very long time some code able to handleshort varlenas (values up to 126 bytes reduced to a 1-byte header),converting such varlenas to an external on-disk TOAST pointer with thevalue saved uncompressed in the secondary TOAST relation.There was zero coverage for this code path. This commit adds a testable to exercise it, relying on two external attributes, one with a lowtoast_tuple_target, so as it is possible to trigger the threshold forthe insertion of short varlenas into the TOAST relation.Author: Nikhil Kumar Veldanda <veldanda.nikhilkumar17@gmail.com>Co-authored-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/aJAl7-NvIk0kZByz@paquier.xyz1 parent0b6aea0 commit225ebfe
2 files changed
+54
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2090 | 2090 | | |
2091 | 2091 | | |
2092 | 2092 | | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
2093 | 2127 | | |
2094 | 2128 | | |
2095 | 2129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
653 | 673 | | |
654 | 674 | | |
655 | 675 | | |
| |||
0 commit comments
Comments
(0)