Peter Eisentraut <peter.eisentr...@2ndquadrant.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