Greg Smith <gsmith@xxxxxxxxxxxxx> writes: > ...This is a bit out of my area, but after reading the rest of this thread I > wonder whether raising the default_statistics_target parameter a bit might > reduce the instances of bad plans showing up. On the evidence so far, it doesn't seem that David's problem has anything to do with bad plans --- I suspected that at first, but the theory's been shot down. I'm now thinking it's an I/O bottleneck in some form ... regards, tom lane