|
42 | 42 | Finally, we check that all indices has NON-zero statistics: rel_sel_map{} must have NO items with zero values.
|
43 | 43 | NOTES:
|
44 | 44 | [21.12.2024] pzotov
|
45 |
| - Currently only FB 6.x has this feature (since 22-mar-2024 11:46). |
46 |
| - Commit: https://github.com/FirebirdSQL/firebird/commit/ef66a9b4d803d5129a10350c54f00bc637c09b48 |
47 |
| -
|
48 |
| - ::: ACHTUNG ::: Index statistics must be searched in the Index Root page rather than in RDB$INDICES! |
49 |
| - Internals of misc FB page types can be found here: |
50 |
| - https://firebirdsql.org/file/documentation/html/en/firebirddocs/firebirdinternals/firebird-internals.html |
51 |
| - |
52 |
| - It is supposed that there are no expression-based indices for selected system tables (this case was not investigated). |
53 |
| -
|
54 |
| - Confirmed ticket issue on 6.0.0.294-c353de4 (21-mar-2024 16:45): some of system tables remain with non-updated index statistics. |
55 |
| - Checked on 6.0.0.295-ef66a9b (22-mar-2024 13:48): all OK,every of checked system tables has non-zero statistics for its indices. |
56 |
| - Test executiuon time: ~8...10 seconds. |
57 |
| -
|
58 |
| - [24.02.2025] |
59 |
| - Changed offset calculations according to #93db88: ODS14: header page refactoring (#8401) |
60 |
| - See: https://github.com/FirebirdSQL/firebird/commit/93db88084d5a04aaa3f98179e76cdfa092431fa8 |
61 |
| -
|
62 |
| - Thanks to Vlad for explanations. |
| 45 | + Currently only FB 6.x has this feature (since 22-mar-2024 11:46). |
| 46 | + Commit: https://github.com/FirebirdSQL/firebird/commit/ef66a9b4d803d5129a10350c54f00bc637c09b48 |
| 47 | + ::: ACHTUNG ::: Index statistics must be searched in the Index Root page rather than in RDB$INDICES! |
| 48 | + Internals of misc FB page types can be found here: |
| 49 | + https://firebirdsql.org/file/documentation/html/en/firebirddocs/firebirdinternals/firebird-internals.html |
| 50 | + It is supposed that there are no expression-based indices for selected system tables (this case was not investigated). |
| 51 | +
|
| 52 | + Confirmed ticket issue on 6.0.0.294-c353de4 (21-mar-2024 16:45): some of system tables remain with non-updated index statistics. |
| 53 | + Checked on 6.0.0.295-ef66a9b (22-mar-2024 13:48): all OK,every of checked system tables has non-zero statistics for its indices. |
| 54 | + Test executiuon time: ~8...10 seconds. |
| 55 | + [24.02.2025] pzotov |
| 56 | + Changed offset calculations according to #93db88: ODS14: header page refactoring (#8401) |
| 57 | + See: https://github.com/FirebirdSQL/firebird/commit/93db88084d5a04aaa3f98179e76cdfa092431fa8 |
| 58 | + Thanks to Vlad for explanations. |
| 59 | + [18.07.2025] pzotov |
| 60 | + An old problem triggered by schemas changes was found when this test ran on 6.0.0.834: |
| 61 | + Sent report to Adriano 18.07.2025 08:24, subj: |
| 62 | + Weird "message length error (encountered 506, expected 253)" on attempting to create trivial function after trying to drop non-existing filter |
| 63 | + Fixed on: |
| 64 | + https://github.com/FirebirdSQL/firebird/commit/45b40b86b94bec9deadcab5d376e079700cd68aa |
| 65 | + Checked on 6.0.0.1039-45b40b8. |
63 | 66 | """
|
64 | 67 | import sys
|
65 | 68 | import binascii
|
|
133 | 136 | v_sttm = 'create or alter mapping local_map_' || i || ' using any plugin from group musicians to role guitarist';
|
134 | 137 | execute statement v_sttm;
|
135 | 138 |
|
| 139 | + -- /********************** |
136 | 140 | begin
|
137 | 141 | v_sttm = 'drop collation name_coll_' || i;
|
138 | 142 | execute statement v_sttm;
|
|
172 | 176 | begin
|
173 | 177 | end
|
174 | 178 | end
|
| 179 | + -- ************************/ |
175 | 180 |
|
176 | 181 | -- examples\api\api9f.sql
|
177 | 182 | -- declare filter desc_filter_01 -- ==> will be saved in indexed column rdb$filters.rdb$function_name
|
|
0 commit comments