| From: | cca5507 <cca5507(at)qq(dot)com> |
|---|---|
| To: | pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Bug in pg_get_aios() |
| Date: | 2026-03-23 06:23:04 |
| Message-ID: | tencent_7D61A85D6143AD57CA8D8C00DEC541869D06@qq.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
If I understand correctly, we want to set nulls[0] to true if owner_pid equals to 0:
```
diff --git a/src/backend/storage/aio/aio_funcs.c b/src/backend/storage/aio/aio_funcs.c
index 8997c762062..bcdd82318f7 100644
--- a/src/backend/storage/aio/aio_funcs.c
+++ b/src/backend/storage/aio/aio_funcs.c
@@ -149,7 +149,7 @@ retry:
if (owner_pid != 0)
values[0] = Int32GetDatum(owner_pid);
else
- nulls[0] = false;
+ nulls[0] = true;
/* column: IO's id */
values[1] = Int32GetDatum(ioh_id);
```
--
Regards,
ChangAo Chen
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chao Li | 2026-03-23 06:23:43 | Re: [Proposal] Adding Log File Capability to pg_createsubscriber |
| Previous Message | Pavel Stehule | 2026-03-23 06:22:45 | Re: Remove inner joins based on foreign keys |