Bug in pg_get_aios() - Mailing list pgsql-hackers

From cca5507
Subject Bug in pg_get_aios()
Date
Msg-id tencent_7D61A85D6143AD57CA8D8C00DEC541869D06@qq.com
Whole thread Raw
Responses Re: Bug in pg_get_aios()
List 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

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Remove inner joins based on foreign keys
Next
From: Chao Li
Date:
Subject: Re: [Proposal] Adding Log File Capability to pg_createsubscriber