Change the bool member of the Query structure to bits

From: Quan Zongliang <quanzongliang(at)yeah(dot)net>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Change the bool member of the Query structure to bits
Date: 2024-02-20 10:07:46
Message-ID: d05a1c87-82e9-49a3-a4e2-e0d2b38b2e8b@yeah.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


The Query structure has an increasing number of bool attributes. This is
likely to increase in the future. And they have the same properties.
Wouldn't it be better to store them in bits? Common statements don't use
them, so they have little impact. This also saves memory space.

--
Quan Zongliang

Attachment Content-Type Size
query-bits.patch text/plain 69.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2024-02-20 10:08:23 Re: logical decoding and replication of sequences, take 2
Previous Message Tomas Vondra 2024-02-20 10:04:21 Re: JIT compilation per plan node