From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix check on test function's arguments
Date: Fri, 09 Oct 2026 21:29:13 +0000
Message-ID: <E1xFI9R-00000000zjI-40zf@gemulon.postgresql.org> (raw)
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.grigorev@ftdata.ru>
Reviewed-by: Sho Ito <i.sho.0628@gmail.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(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Fix check on test function's arguments
In-Reply-To: <E1xFI9R-00000000zjI-40zf@gemulon.postgresql.org>
References: <E1xFI9R-00000000zjI-40zf@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