Re: Refactor query normalization into core query jumbling
zengman <zengman@halodbtech.com>
From: zengman <zengman@halodbtech.com>
To: Sami Imseih <samimseih@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-12-23T03:39:14Z
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