Josh Berkus <josh@agliodbs.com> writes: >> It's also worth mentioning that for datatypes that only have an "=" >> operator the performance of compute_minimal_stats is O(N^2) when values >> are unique, so increasing sample size is a very bad idea in that case.
> Hmmm ... does ANALYZE check for UNIQUE constraints? Our only implementation of UNIQUE constraints is btree indexes, which require more than an "=" operator, so this seems irrelevant. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend