Re: Strange query plan
От
Dmitry Teslenko
Тема
Re: Strange query plan
Дата
Msg-id
91325fec0808140755v42a95803xda0b03f354fb35c3@mail.gmail.com
Список
Дерево обсуждения
Strange query plan "Dmitry Teslenko" <dteslenko@gmail.com>
Re: Strange query plan Peter Eisentraut <peter_e@gmx.net>
Re: Strange query plan "Dmitry Teslenko" <dteslenko@gmail.com>
Re: Strange query plan Martin Gainty <mgainty@hotmail.com>
Re: Strange query plan "Gauthier, Dave" <dave.gauthier@intel.com>
Re: Strange query plan "Igor Neyman" <ineyman@perceptron.com>
Re: Strange query plan "Dmitry Teslenko" <dteslenko@gmail.com>
Re: Strange query plan "Gauthier, Dave" <dave.gauthier@intel.com>
Re: Strange query plan "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Strange query plan Thomas Burdairon <tburdairon@entelience.com>
Re: Strange query plan "Scott Marlowe" <scott.marlowe@gmail.com>
On Thu, Aug 14, 2008 at 18:47, Scott Marlowe wrote: > What does "explain analyze select.... (your query here)" have to say? > Expalin analyze says it makes sequential scan on a table table1. On Thu, Aug 14, 2008 at 18:48, Gauthier, Dave wrote: > Try this... > > Set default_statistics_target to be 1000 in postgres.conf then reboot > your pg server. "Analyze" the table. Try the query again. > > If that fails, drop the index on (field1, field3) and recreate the other > way around (field3, field1). Analyze again and try the query. > > -dave I've altered query and swapped field1 and field3 there, in where statement. Seems that order doesn't matter. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
В списке pgsql-general по дате отправления