Use boolean array for nulls parameters

From: japin <japinli(at)hotmail(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Use boolean array for nulls parameters
Date: 2021-01-19 14:06:38
Message-ID: MEYP282MB1669D8B332CC0EC60E456F4CB6A30@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hi,

When I review the [1], I find that the tuple's nulls array use char type.
However there are many places use boolean array to repsent the nulls array,
so I think we can replace the char type nulls array to boolean type. This
change will break the SPI_xxx API, I'm not sure whether this chagnges cause
other problems or not. Any thought?

[1] - https://www.postgresql.org/message-id/flat/CA+HiwqGkfJfYdeq5vHPh6eqPKjSbfpDDY+j-kXYFePQedtSLeg(at)mail(dot)gmail(dot)com

--
Regrads,
Japin Li.
ChengDu WenWu Information Technology Co.,Ltd.

Attachment Content-Type Size
v1-0001-Replace-the-char-to-bool-array-for-null-parameter.patch text/x-patch 22.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitry Dolgov 2021-01-19 14:25:14 Re: [HACKERS] [PATCH] Generic type subscripting
Previous Message Dilip Kumar 2021-01-19 13:56:34 Re: TOAST condition for column size