From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve test coverage in bump.c
Date: Tue, 16 Apr 2024 04:21:50 +0000
Message-ID: <E1rwaKL-002H6n-Pn@gemulon.postgresql.org> (raw)
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(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: drowley@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Improve test coverage in bump.c
In-Reply-To: <E1rwaKL-002H6n-Pn@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox