Franck Routier <franck.routier@xxxxxxxxx> writes: > Le 04/04/2013 21:08, Tom Lane a écrit : >> Hmph. Can't see any reason for that to take a remarkably long time to >> plan. Can you put together a self-contained test case demonstrating >> excessive planning time? What PG version is this, anyway? > What I notice is that removing joins has a huge impact on the time > explain takes to return: Hm, kind of looks like it's just taking an unreasonable amount of time to process each join clause. What have you got the statistics targets set to in this database? What are the datatypes of the join columns? And (again) what PG version is this exactly? regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance