diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2023-07-02 10:33:34 +0200 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2023-07-02 10:33:38 +0200 |
commit | 0457109344b46f481f9bf09b85674695ba57c8e4 (patch) | |
tree | aefc8772d87064ed99da8778ea17a21a495fbf0b /src/backend/commands/trigger.c | |
parent | 2b8b2852bbc54f02e26131a966e62c432144dc93 (diff) | |
download | postgresql-0457109344b46f481f9bf09b85674695ba57c8e4.tar.gz postgresql-0457109344b46f481f9bf09b85674695ba57c8e4.zip |
Improve BRIN minmax-multi opclass test coverage
Per the code coverage report, the existing regression tests did not
exercice some a couple important BRIN minmax-multi code paths.
- The tests focused on testing planning with a range of scan key
strategies, but not the execution. Fixed by adding queries that
actually test query execution for both equality and inequality.
- All tests created indexes after inserting data, but this only
exercises the CREATE INDEX strategy that sees all values at once, not
incremental summary updates. The new tests flip the order and create
the index before adding data.
- The assert check(s) validating correctness of expanded ranges were
present only in the "union" code path, which is not covered by
regression tests at all (as it requires concurrency etc.). Fixed by
adding the asserts to a couple more places.
Reviewed-by: Heikki Linnakangas
Discussion: https://postgr.es/m/57020b2e-d9c9-9bc7-4892-b36d9bb07563%40enterprisedb.com
Diffstat (limited to 'src/backend/commands/trigger.c')
0 files changed, 0 insertions, 0 deletions