forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit70d1c66
committed
Fix contrib/pageinspect's test for sequences.
I managed to break this test in two different ways in commit05036a3.First, the output of the new call to tuple_data_split() on the testsequence is dependent on endianness. This is fixed by setting aspecial start value for the test sequence that produces the sameoutput regardless of the endianness of the machine.Second, on versions older than v15, the new test case fails under"force_parallel_mode = regress" with the following error:ERROR: cannot access temporary tables during a parallel operationThis is because pageinspect's disk-accessing functions areincorrectly marked PARALLEL SAFE on versions older than v15 (seecommitaeaaf52 for details). This one is fixed by changing thetest sequence to be permanent. The only reason it was previouslymarked temporary was to avoid needing a DROP SEQUENCE command atthe end of the test. Unlike some other tests in this file, the useof a permanent sequence here shouldn't result in any testinstability like what was fixed by commite2933a6.Reviewed-by: Tom LaneDiscussion:https://postgr.es/m/ZuOKOut5hhDlf_bP%40nathanBackpatch-through: 121 parent433d8f4 commit70d1c66
2 files changed
+5
-3
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
243 |
| - | |
| 243 | + | |
244 | 244 |
| |
245 | 245 |
| |
246 | 246 |
| |
247 | 247 |
| |
248 |
| - | |
| 248 | + | |
249 | 249 |
| |
250 | 250 |
| |
| 251 | + |
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
103 |
| - | |
| 103 | + | |
104 | 104 |
| |
105 | 105 |
| |
| 106 | + |
0 commit comments
Comments
(0)