Re: Any better plan for this query?.. - Mailing list pgsql-performance

From Tom Lane
Subject Re: Any better plan for this query?..
Date
Msg-id 1323.1242055438@sss.pgh.pa.us
Whole thread Raw
In response to Re: Any better plan for this query?..  (Dimitri <dimitrik.fr@gmail.com>)
Responses Re: Any better plan for this query?..  (Dimitri <dimitrik.fr@gmail.com>)
Re: Any better plan for this query?..  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-performance
Dimitri <dimitrik.fr@gmail.com> writes:
> Anyone may explain me why analyze target may have so huge negative
> secondary effect?..

If these are simple queries, maybe what you're looking at is the
increase in planning time caused by having to process 10x as much
statistical data.  Cranking statistics_target to the max just because
you can is not necessarily a good strategy.

            regards, tom lane

pgsql-performance by date:

Previous
From: Dimitri
Date:
Subject: Re: Any better plan for this query?..
Next
From: Stefan Kaltenbrunner
Date:
Subject: Re: PostgreSQL with PostGIS on embedded hardware