Re: Problem with nested query

Поиск
Список
Период
Сортировка
От Denis Perchine
Тема Re: Problem with nested query
Дата
Msg-id 0010031719090E.00490@dyp.perchine.com
обсуждение исходный текст
Ответ на Re: Problem with nested query  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> Denis Perchine <dyp@perchine.com> writes:
> > As far as you can see it uses sequence scan for inner select. This is
> > quite strange as if I do this select with a constant it will use index
> > scan:
>
> Are the two tables' "email" fields declared as exactly the same
> datatype?

No...

> IIRC, 7.0.* has a problem with recognizing that a type-coerced parameter
> to an inner query is useful as an indexscan reference constant.  This is
> fixed in current sources, but in the meantime avoiding an implicit type
> coercion is the easiest workaround.

OK. Thanks.

--
Sincerely Yours,
Denis Perchine

----------------------------------
E-Mail: dyp@perchine.com
HomePage: http://www.perchine.com/dyp/
FidoNet: 2:5000/120.5
----------------------------------

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

Предыдущее
От: Peter Mount
Дата:
Сообщение: Re: Re: JDBC Performance
Следующее
От: Marcin Mazurek
Дата:
Сообщение: pg_dump on view