Re: 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: Re: Change the bool member of the Query structure to bits
Date: 2024-02-20 10:11:55
Message-ID: dc6fef8c-a702-43f1-8490-ed6c8408e712@yeah.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Sorry. I forgot to save a file. This is the latest.

On 2024/2/20 18:07, Quan Zongliang wrote:
>
> 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hayato Kuroda (Fujitsu) 2024-02-20 10:17:18 RE: speed up a logical replica setup
Previous Message Daniel Gustafsson 2024-02-20 10:09:46 Re: Replace current implementations in crypt() and gen_salt() to OpenSSL