| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix check on test function's arguments |
| Date: | 2026-10-09 21:29:13 |
| Message-ID: | E1xFI9R-00000000zjI-40zf@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Fix check on test function's arguments
The function won't cope with nkinds == 0, it leads to division by
zero. It's just a test function though, so this is harmless and
there's no need to backport.
Author: Yuriy Grigoryev <ju(dot)grigorev(at)ftdata(dot)ru>
Reviewed-by: Sho Ito <i(dot)sho(dot)0628(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/1905e9d709554733b418d06a4806436f@localhost.localdomain
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5f36942fd3196259ad5ad691f5ecbe4ce555ab7c
Modified Files
--------------
src/test/modules/test_resowner/test_resowner_many.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2026-10-09 22:21:04 | pgsql: Fix crash with wal_debug in EXEC_BACKEND child processes |
| Previous Message | Robert Haas | 2026-10-09 18:14:28 | pgsql: pg_plan_advice: Fix advice feedback JOIN_ORDER over a single sub |