- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitda83b1e
committed
Avoid depending on post-UPDATE row order in float4/float8 tests.
While heapam reproduces the insertion order of rows well, updatescan move rows to varying places depending on autovacuum activity.In most regression tests we've guarded against getting variableresults due to that, but float4.sql and float8.sql had escapednotice so far because they update tables that are too small forautovacuum to pay attention to.With increasing interest in non-heap table AMs, it seems worthallowing for update behaviors that are not like heapam's. Hence,add ORDER BY to stabilize the results in case the updates putthe rows in a different order. (We'll continue to assume that aseqscan will reproduce original insertion order, though. Removingthat assumption would require vastly-more-invasive test changes.)Author: Pavel Borisov <pashkin.elfe@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/CALT9ZEExHAnBoBVQzQuWPMKUbapF5-FBO3fdeYG3s2tuWQz1NQ@mail.gmail.com1 parenteaf5828 commitda83b1e
File tree
5 files changed
+14
-14
lines changed- src/test/regress
- expected
- sql
5 files changed
+14
-14
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
311 |
| - | |
| 311 | + | |
312 | 312 |
| |
313 | 313 |
| |
314 |
| - | |
315 |
| - | |
316 |
| - | |
317 | 314 |
| |
| 315 | + | |
| 316 | + | |
318 | 317 |
| |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
311 |
| - | |
| 311 | + | |
312 | 312 |
| |
313 | 313 |
| |
314 |
| - | |
315 |
| - | |
316 |
| - | |
317 | 314 |
| |
| 315 | + | |
| 316 | + | |
318 | 317 |
| |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
648 | 648 |
| |
649 | 649 |
| |
650 | 650 |
| |
651 |
| - | |
| 651 | + | |
652 | 652 |
| |
653 | 653 |
| |
654 |
| - | |
655 |
| - | |
656 |
| - | |
657 | 654 |
| |
| 655 | + | |
| 656 | + | |
658 | 657 |
| |
| 658 | + | |
659 | 659 |
| |
660 | 660 |
| |
661 | 661 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
| 101 | + | |
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
200 |
| - | |
| 200 | + | |
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
|
0 commit comments
Comments
(0)