Andrea Arcangeli <andrea@xxxxxxxxxxxx> writes: > There's only one preempt near the end, not sure if it would work? Not with that data, but maybe if you increased the statistics target for the column to 100 or so, you'd catch enough values to get reasonable results. regards, tom lane