Re: query optimiser changes 6.5->7.0 - Mailing list pgsql-general

From Jeff Hoffmann
Subject Re: query optimiser changes 6.5->7.0
Date
Msg-id 3937D85E.D1136092@propertykey.com
Whole thread Raw
In response to query optimiser changes 6.5->7.0  ("Simon Hardingham" <simon@netxtra.net>)
List pgsql-general
Martijn van Oosterhout wrote:

> > set enable_seqscan=off;
>
> But doesn't this mean that if there are no appropriate
> indicies defined on a table, queries will fail?

no, it just makes sequential scans a very bad choice.  of course, if
there aren't any other choices, you're stuck going with the bad choice.
that means that if there aren't any other options (i.e. indexes) you'll
always revert to a sequential scan.

jeff

pgsql-general by date:

Previous
From: moebius@ip-solutions.net
Date:
Subject: recipe database
Next
From: Tom Lane
Date:
Subject: Re: query optimiser changes 6.5->7.0