Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> writes:
> On 12/12/2018 16:57, Tom Lane wrote:
>> + stats->attrcollid = exprCollation(index_expr);
>> + /* XXX should we consult indcollation instead? */
> After looking through this again, I think the answer here is "yes".
Yeah, I was leaning towards that as well, but hadn't written the extra
code needed to make it so. Will fix.
regards, tom lane