Re: question about count(b) where b is a custom type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: question about count(b) where b is a custom type
Дата
Msg-id 5917.1132154573@sss.pgh.pa.us
обсуждение исходный текст
Ответ на question about count(b) where b is a custom type  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
Список pgsql-hackers
Grzegorz Jaskiewicz <gj@pointblue.com.pl> writes:
> I have few fprintf(stderr,""") in function that converts internal  
> rep. into string. I was really supprised to see them on me screen when :
> select count(b) from blah where b ~ 'something';
> was issued. What the hell, isn't it wrong ?

Depends ... what does the ~ operator do for your datatype?  (If you've
defined an implicit conversion to text then it's very possibly invoking
that followed by the regex match operator.)

Have you tried getting a stack trace back from your function to see
exactly what is calling it?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PG_DUMP and table locking in PG7.4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: OS X 7.4 failure