From: | David Rowley <drowley(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Improve test coverage in bump.c |
Date: | 2024-04-16 04:21:50 |
Message-ID: | E1rwaKL-002H6n-Pn@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/bea97cd02ebb347ab469b78673c2b33a72109669
Modified Files
--------------
src/test/regress/expected/sysviews.out | 23 +++++++++++++++++++++++
src/test/regress/expected/tuplesort.out | 13 +++++++++++++
src/test/regress/sql/sysviews.sql | 15 +++++++++++++++
src/test/regress/sql/tuplesort.sql | 9 +++++++++
4 files changed, 60 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Korotkov | 2024-04-16 10:31:58 | pgsql: revert: Generalize relation analyze in table AM interface |
Previous Message | Michael Paquier | 2024-04-16 03:27:29 | pgsql: xml2: Replace deprecated routines with recommended ones |