Re: suggestions on improving a query - Mailing list pgsql-general

From Tom Lane
Subject Re: suggestions on improving a query
Date
Msg-id 6003.1171421091@sss.pgh.pa.us
Whole thread Raw
In response to suggestions on improving a query  (Rajarshi Guha <rguha@indiana.edu>)
Responses Re: suggestions on improving a query  (Rajarshi Guha <rguha@indiana.edu>)
List pgsql-general
Rajarshi Guha <rguha@indiana.edu> writes:
> However the clause:
>     dock.target = '1YC1' and
>     dock.dockid = dockscore_plp.id
> reduces the number of rows from 4.6M to 96K.

The planner seems to be estimating about ten times that many.  Perhaps
increasing the statistics target for dock.target would help?

            regards, tom lane

pgsql-general by date:

Previous
From: "Adam Rich"
Date:
Subject: Re: suggestions on improving a query
Next
From: Tom Lane
Date:
Subject: Re: suggestions on improving a query