Re: Bug in pg_get_aios()

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Chao Li <li.evan.chao@gmail.com>
Cc: cca5507 <cca5507@qq.com>, pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-03-23T08:44:21Z
Lists: pgsql-hackers
On Mon, Mar 23, 2026 at 02:30:28PM +0800, Chao Li wrote:
>> On Mar 23, 2026, at 14:23, cca5507 <cca5507@qq.com> wrote:
>> If I understand correctly, we want to set nulls[0] to true if owner_pid equals to 0:
> 
> Indeed an obvious bug.

Or the intention of the code could have been to allow a PID value of 0
to be exposed, but I don't really buy it.  Will fix, thanks for the
report.
--
Michael

Commits

  1. Fix invalid value of pg_aios.pid, function pg_get_aios()