Alvaro Herrera <[EMAIL PROTECTED]> writes: > > > > Looking at explain.c, it is only timing the executor part in > > > > ExplainOnePlan(). The planner() call is outside that loop, so it must > > > > be parse/plan, though that seems like a lot of time spent in that area.
As I posted separately that seems to be exactly where the time is being spent. It take nearly a second simply for a plain old "explain" with no analyze. > > > Could it be because of extremely large statistics settings for the > > > tables involved? > > > > Which large statistics? Does he more than the default number of > > statistics buckets? > > I dunno, that's why I'm asking :-) Just an idea. This sounds like a good theory to me. But I can't find anything like that. Perhaps some large statistic array being toasted and compressed? What would I check for? Just looking in pg_statistic doesn't find anything that stands out. The strangest lines to my eyes are the ones with the verbose plan stuff in them, but there are similar lines on my working machine. Is there any way to see what the values are set with ALTER TABLE ALTER column SET STATISTICS ? Perhaps it should be listed in the \d output for the table? -- greg ---------------------------(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