Re: Refactor query normalization into core query jumbling

From: zengman <zengman(at)halodbtech(dot)com>
To: Sami Imseih <samimseih(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Refactor query normalization into core query jumbling
Date: 2025-12-23 03:39:14
Message-ID: tencent_2FF1F5A9360E2DD24C6478FB@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Though this may be tangential to the current topic, I have long been wanting to revise the two instances of `Assert(len_to_wrt >= 0);`
in the code to the implementation below. Would you kindly advise if this modification is worthwhile?

```
if (len_to_wrt > 0)
{
memcpy(norm_query + n_quer_loc, query + quer_loc, len_to_wrt);
n_quer_loc += len_to_wrt;
}
```

--
Regards,
Man Zeng
www.openhalo.org

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message wenhui qiu 2025-12-23 04:03:31 Re: Vectorize pg_visibility.pg_visibility_map_summary
Previous Message Paul A Jungwirth 2025-12-23 03:25:46 Re: domain for WITHOUT OVERLAPS