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

When the value of pg_aios.pid is found to be 0, the function had the
idea to set "nulls" to "false" instead of "true", without setting the
value stored in the tuplestore.  This could lead to the display of buggy
data.  The intention of the code is clearly to display NULL when a PID
of 0 is found, and this commit adjusts the logic to do so.

Issue introduced by 60f566b4f243.

Author: ChangAo Chen <[email protected]>
Reviewed-by:  Chao Li <[email protected]>
Discussion: 
https://postgr.es/m/[email protected]
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/93b76db0ace674a29a5d2146a139d6dd87b99659

Modified Files
--------------
src/backend/storage/aio/aio_funcs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Reply via email to