[PERFORM] default_statistics_target

2010-03-14 Thread Carlo Stonebanks
Hi people, The whole topic of messing with stats makes my head spin but I am concerned about some horridly performing queries that have had bad rows estimates and others which always choose seq scans when indexes are available. Reading up on how to improve planner estimates, I have seen refere

Re: [PERFORM] pg_dump far too slow

2010-03-14 Thread Tom Lane
David Newall writes: > [ very slow pg_dump of table with large bytea data ] Did you look at "vmstat 1" output to see whether the system was under any large I/O load? Dumping large bytea data is known to be slow for a couple of reasons: 1. The traditional text output format for bytea is a bit po

Re: [PERFORM] Deleting bytea, autovacuum, and 8.2/8.4 differences

2010-03-14 Thread fka...@googlemail.com
Hi Dave, thank you for your answers! Here some comments: Dave Crooke: > > * The table just has 5 unused int columns, a timestamp, > > OIDs, and the bytea column, *no indices*; the bytea storage > > type is 'extended', the 16 MB are compressed to approx. the > > half. > > > > Why no indices? Si

[PERFORM] pg_dump far too slow

2010-03-14 Thread David Newall
Evening all, Maiden post to this list. I've a performance problem for which I'm uncharacteristically in need of good advice. I have a read-mostly database using 51GB on an ext3 filesystem on a server running Ubuntu 9.04 and PG 8.3. Forty hours ago I started a plain-format dump, compressed