Re: plpgsql and index usage

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plpgsql and index usage
Дата
Msg-id 25782.1040426869@sss.pgh.pa.us
обсуждение исходный текст
Ответ на plpgsql and index usage  (Ryan Mahoney <ryan@flowlabs.com>)
Список pgsql-hackers
Ryan Mahoney <ryan@flowlabs.com> writes:
>  Index Scan using pa_zipcode_proximity_pk on pa_zipcode_proximity  (cost=
> 0.00..13.53 rows=3 width=862)
>    Index Cond: ((zipcode = '11103'::bpchar) AND (proximity <= 100))
> (183 rows)

Hmm ... evidently zipcode is declared as type char(5) (note the "bpchar"
coercion).  Is the plpgsql variable it's being compared to declared the
same way?  This could be ye olde cross-datatype-coercion problem.
        regards, tom lane


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

Предыдущее
От: Ryan Mahoney
Дата:
Сообщение: plpgsql and index usage
Следующее
От: Gavin Sherry
Дата:
Сообщение: Resource management in 7.4