Re: [PATCH] ANALYZE: hash-accelerate MCV tracking for equality-only types - Mailing list pgsql-hackers

From Ilia Evdokimov
Subject Re: [PATCH] ANALYZE: hash-accelerate MCV tracking for equality-only types
Date
Msg-id d6124b11-cd3c-44d8-858c-c1c9e2d9a616@tantorlabs.com
Whole thread
In response to Re: [PATCH] ANALYZE: hash-accelerate MCV tracking for equality-only types  (Chengpeng Yan <chengpeng_yan@outlook.com>)
Responses Re: [PATCH] ANALYZE: hash-accelerate MCV tracking for equality-only types
List pgsql-hackers

On 4/14/26 04:34, Chengpeng Yan wrote:

I split v5 accordingly. The first patch changes the singleton handling
from shifting to a cursor-based eviction scheme, and the second patch
adds the hash lookup.
I reviewed v5 of the patches. Instead of going through each issue one by one, I made a pass to clean up and clarify the code and summarize the main changes belows:

- Fixed a few typos in comments and added comments in places where the logic was not immediately clear;

- Rewrote the bubble-up loop using `for` loop, which I find more readable. Also removed some confusing uses of the `j` variable that mase the flow harder to follow;

- Simplified parts of the code to improve overall readability.

-- 
Best regards,
Ilia Evdokimov,
Tantor Labs LLC,
https://tantorlabs.com/

Attachment

pgsql-hackers by date:

Previous
From: Smolkin Grigory
Date:
Subject: Streaming replication and WAL archive interactions
Next
From: Andy Fan
Date:
Subject: Re: Make printtup a bit faster