| От | Tom Lane |
|---|---|
| Тема | Re: Problem with nested query |
| Дата | |
| Msg-id | 16810.970549016@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Problem with nested query (Denis Perchine <dyp@perchine.com>) |
| Ответы |
Re: Problem with nested query
|
| Список | 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?
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.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера