Improve test coverage in bump.c
David Rowley <drowley@postgresql.org>
Improve test coverage in bump.c There were no callers of BumpAllocLarge() in the regression tests, so here we add a sort with a tuple large enough to use that path in bump.c. Also, BumpStats() wasn't being called, so add a test to sysviews.sql to call pg_backend_memory_contexts() while a bump context exists in the backend. Reported-by: Andres Freund Discussion: https://postgr.es/m/20240414223305.m3i5eju6zylabvln@awork3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/sysviews.out | modified | +23 −0 |
| src/test/regress/expected/tuplesort.out | modified | +13 −0 |
| src/test/regress/sql/sysviews.sql | modified | +15 −0 |
| src/test/regress/sql/tuplesort.sql | modified | +9 −0 |
Discussion
- Differential code coverage between 16 and HEAD 18 messages · 2024-04-14 → 2025-05-26