Pedro Alves <[EMAIL PROTECTED]> writes: > The vacuum analyze is run on daily basis, so that cannot be the point.
The next thing I'd try to improve the planner's guess is to increase the statistics target for the ra_datacolh column (see ALTER TABLE SET STATISTICS). It looks like the default of 10 is too small for that column --- try 100 and see if the rowcount estimates get any closer. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly