Re: WIP: index support for regexp search

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема Re: WIP: index support for regexp search
Дата
Msg-id CAPpHfdtEhR=vhkPdTVguWK94d1rFPuDtAT1W2FO-xfm21uZw=w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: WIP: index support for regexp search  (Tomas Vondra <tv@fuzzy.cz>)
Ответы Re: WIP: index support for regexp search  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On Tue, Nov 20, 2012 at 3:02 AM, Tomas Vondra <tv@fuzzy.cz> wrote:
2) It's common to use upper-case names for macros, but trgm.h defines
   macro "iswordchr" - I see it's moved from trgm_op.c but maybe we
   could make it a bit more correct?

3) I see there are two '#ifdef KEEPONLYALNUM" blocks right next to each
   other in trgm.h - maybe it'd be a good idea to join them?

4) The two new method prototypes at the end of trgm.h use different
   indendation than the rest (spaces only instead of tabs).
These issues are fixed in attached patch.
Additionally 3 new macros are introduced: MAX_RESULT_STATES, MAX_RESULT_ARCS, MAX_RESULT_PATHS. They are limiting resources usage during regex processing.

------
With best regards,
Alexander Korotkov.
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: review: Reduce palloc's in numeric operations
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] binary heap implementation