pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix invalid value of pg_aios.pid, function pg_get_aios() 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix invalid value of pg_aios.pid, function pg_get_aios() @ 2026-03-23 09:15 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2026-03-23 09:15 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <cca5507@qq.com> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://postgr.es/m/tencent_7D61A85D6143AD57CA8D8C00DEC541869D06@qq.com 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix invalid value of pg_aios.pid, function pg_get_aios() @ 2026-03-23 09:15 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2026-03-23 09:15 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <cca5507@qq.com> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://postgr.es/m/tencent_7D61A85D6143AD57CA8D8C00DEC541869D06@qq.com Backpatch-through: 18 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/882bdcf9fd05f50153bc974568e48add76547fd3 Modified Files -------------- src/backend/storage/aio/aio_funcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-03-23 09:15 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-03-23 09:15 pgsql: Fix invalid value of pg_aios.pid, function pg_get_aios() Michael Paquier <michael@paquier.xyz> 2026-03-23 09:15 pgsql: Fix invalid value of pg_aios.pid, function pg_get_aios() Michael Paquier <michael@paquier.xyz>
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