|
1 | 1 | CREATE EXTENSION pageinspect;
|
2 | 2 | CREATE TABLE test1 (a int, b int);
|
3 | 3 | INSERT INTO test1 VALUES (16777217, 131584);
|
4 |
| -VACUUM test1; -- set up FSM |
| 4 | +VACUUM (DISABLE_PAGE_SKIPPING) test1; -- set up FSM |
5 | 5 | -- The page contents can vary, so just test that it can be read
|
6 | 6 | -- successfully, but don't keep the output.
|
7 | 7 | SELECT octet_length(get_raw_page('test1', 'main', 0)) AS main_0;
|
@@ -87,18 +87,8 @@ SELECT * FROM fsm_page_contents(get_raw_page('test1', 'fsm', 0));
|
87 | 87 | (1 row)
|
88 | 88 |
|
89 | 89 | -- If we freeze the only tuple on test1, the infomask should
|
90 |
| --- always be the same in all test runs. we show raw flags by |
91 |
| --- default: HEAP_XMIN_COMMITTED and HEAP_XMIN_INVALID. |
92 |
| -VACUUM FREEZE test1; |
93 |
| -SELECT t_infomask, t_infomask2, raw_flags, combined_flags |
94 |
| -FROM heap_page_items(get_raw_page('test1', 0)), |
95 |
| - LATERAL heap_tuple_infomask_flags(t_infomask, t_infomask2); |
96 |
| - t_infomask | t_infomask2 | raw_flags | combined_flags |
97 |
| -------------+-------------+-----------------------------------------------------------+-------------------- |
98 |
| - 2816 | 2 | {HEAP_XMIN_COMMITTED,HEAP_XMIN_INVALID,HEAP_XMAX_INVALID} | {HEAP_XMIN_FROZEN} |
99 |
| -(1 row) |
100 |
| - |
101 |
| --- output the decoded flag HEAP_XMIN_FROZEN instead |
| 90 | +-- always be the same in all test runs. |
| 91 | +VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) test1; |
102 | 92 | SELECT t_infomask, t_infomask2, raw_flags, combined_flags
|
103 | 93 | FROM heap_page_items(get_raw_page('test1', 0)),
|
104 | 94 | LATERAL heap_tuple_infomask_flags(t_infomask, t_infomask2);
|
|
0 commit comments