Re: BUG #5035: cast 'text' to 'name' doesnt work in plpgsql function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5035: cast 'text' to 'name' doesnt work in plpgsql function
Дата
Msg-id 16769.1252087498@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5035: cast 'text' to 'name' doesnt work in plpgsql function  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-bugs
Alvaro Herrera <alvherre@commandprompt.com> writes:
> tkarlik@ultimo.pl wrote:
>> Without casting function executes much slower:

> If you're looking for a speedy answer, try a SQL function, not plpgsql.

He's still going to need the cast to name.  It's not a bug, it's just
how things work: the indexes on pg_class support name = name equality
tests, not text = text.

            regards, tom lane

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

Предыдущее
От: Sam Mason
Дата:
Сообщение: Re: BUG #5028: CASE returns ELSE value always when type is "char"
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #5028: CASE returns ELSE value always when type is "char"