git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 768ceee) | patch
Improve test coverage in bump.c
2024年4月16日 04:21:31 +0000 (16:21 +1200)
2024年4月16日 04:21:31 +0000 (16:21 +1200)
commit bea97cd02ebb347ab469b78673c2b33a72109669
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
src/test/regress/expected/sysviews.out diff | blob | blame | history
src/test/regress/expected/tuplesort.out diff | blob | blame | history
src/test/regress/sql/sysviews.sql diff | blob | blame | history
src/test/regress/sql/tuplesort.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /