On Thu, Jan 03, 2008 at 07:11:07AM +0200, Brian Modra wrote: > Thanks, I think you have me on the right track. I'm testing a vacuum > analyse now to see how long it takes, and then I'll set it up to > automatically run every night (so that it has a chance to complete > before about 6am.)
Note that "VACUUM ANALYSE" and "ANALYSE" are not identical: the former also performs vacuum. On a table that is not updating that often but that is expanding rapidly, you may not need that extra I/O. Analyse on its own can perform just the statistical sampling. If you're not creating dead tuples with UPDATE, DELETE, or ROLLBACK, that might be enough most of the time. A ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org