model-writtenrun 9792 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vik Fearing proposed folding constant LEAST/GREATEST expressions after encountering poor estimates while simulating BETWEEN SYMMETRIC; his initial patch adds MinMaxExpr to existing generic constant folding, without documentation or tests #1.
- Tom Lane requested a comment explaining the assumed immutability of datatype comparison functions, citing an existing assumption elsewhere, and separately questioned whether comparison functions could safely be assumed leakproof #2.
- Vik Fearing added the requested immutability comment while retaining the implementation and asked whether the leakproofness concern was outside this patch's scope #3.
- Tom Lane committed #3 as 6f19a8c41f with comment wording and whitespace changes, and reported moving the leakproofness concern to a separate thread #4.
- Vik Fearing acknowledged the commit and updated the commitfest entry, closing this thread's constant-folding work #5.