| From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Cc: | idrissaajalloh(at)gmail(dot)com |
| Subject: | BUG #19953: pg_stat_io exposes impossible rows for io worker backends |
| Date: | 2026-11-25 17:46:20 |
| Message-ID: | 19953-1b7093dad1f8093f@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 19953
Logged by: Wren
Email address: idrissaajalloh(at)gmail(dot)com
PostgreSQL version: 19.0
Operating system: Linux/amd64
Description:
pg_stat_io exposes eight rows for the "io worker" backend type, although
asynchronous I/O statistics are charged to the submitting backend and the
worker execution path does not increment these counters. Consequently, these
rows cannot acquire counter values and should not be exposed.
This can be reproduced with:
\pset tuples_only on
\pset format unaligned
SELECT count(*) AS io_worker_rows
FROM pg_stat_io
WHERE backend_type = 'io worker';
SELECT backend_type, object, context
FROM pg_stat_io
WHERE backend_type = 'io worker'
ORDER BY object, context;
The output is:
Output format is unaligned.
8
io worker|relation|bulkread
io worker|relation|bulkwrite
io worker|relation|init
io worker|relation|normal
io worker|relation|vacuum
io worker|temp relation|normal
io worker|wal|init
io worker|wal|normal
The expected count is zero. PostgreSQL 17.11 returns zero rows for the same
query.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kirill Reshke | 2026-11-25 18:07:34 | Re: BUG #19942: SIGSEGV crash (and wrong results) in MERGE ... RETURNING WITH (OLD/NEW) with VIRTUAL generated colum |
| Previous Message | PG Bug reporting form | 2026-11-25 17:42:11 | BUG #19952: psql \d+ omits nondefault replica identity for partitioned tables |