Re: Slow query after upgrades

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Slow query after upgrades
Дата
Msg-id 4761C641.30308@opencloud.com
обсуждение исходный текст
Ответ на Re: Slow query after upgrades  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Slow query after upgrades  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Re: Slow query after upgrades  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-jdbc
Tom Lane wrote:

> It looks pretty obvious from the peanut gallery: in the parameterized
> query, the planner daren't choose an indexscan, because for the vast
> majority of the possible values of the parameter an indexscan would
> suck.

The JDBC driver is using an unnamed statement in this case, shouldn't
the planner end up using index selectivity estimates based on the actual
parameter values?

 From the explain output that just came through it looks like a type
mismatch problem on the timestamp parameter.

-O

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Slow query after upgrades
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: Slow query after upgrades