Re: Refactor query normalization into core query jumbling - Mailing list pgsql-hackers

From zengman
Subject Re: Refactor query normalization into core query jumbling
Date
Msg-id tencent_2FF1F5A9360E2DD24C6478FB@qq.com
Whole thread Raw
In response to Re: Refactor query normalization into core query jumbling  (Sami Imseih <samimseih@gmail.com>)
List 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

pgsql-hackers by date:

Previous
From: Paul A Jungwirth
Date:
Subject: Re: domain for WITHOUT OVERLAPS
Next
From: wenhui qiu
Date:
Subject: Re: Vectorize pg_visibility.pg_visibility_map_summary