Re: Like operator for name type

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Like operator for name type
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B17C838E1@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на Like operator for name type  (Mohsen SM <mohsensoodkhah@gmail.com>)
Список pgsql-hackers
Mohsen SM wrote:
> I don't find where of code run the like operation for name Type.
> 
> can you tell me where compare Like clues with one column of name type ?
> 
> I don't find function for this operation in /src/backend/utils/adt/name.c when I was in debugging mode
> and get break point on all functions.

Do you mean LIKE in a query like this?

test=> EXPLAIN VERBOSE SELECT oid FROM pg_class WHERE relname LIKE 'pg_%';                             QUERY PLAN
----------------------------------------------------------------------Seq Scan on pg_catalog.pg_class
(cost=0.00..12.80rows=230 width=4)  Output: oid  Filter: (pg_class.relname ~~ 'pg_%'::text)
 
(3 rows)

That would use textlike() in backend/utils/adt/like.c

Yours,
Laurenz Albe

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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Proposal: variant of regclass
Следующее
От: David Rowley
Дата:
Сообщение: Re: [PATCH] Negative Transition Aggregate Functions (WIP)