Re: writing new regexp functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: writing new regexp functions
Дата
Msg-id 1875.1170376899@sss.pgh.pa.us
обсуждение исходный текст
Ответ на writing new regexp functions  (Jeremy Drake <pgsql@jdrake.com>)
Ответы Re: writing new regexp functions  (Jeremy Drake <pgsql@jdrake.com>)
Список pgsql-hackers
Jeremy Drake <pgsql@jdrake.com> writes:
> Is there some specific reason that these functions are static,

Yeah: not cluttering the global namespace.  I'm not excited about
exporting everything that anybody could possibly want access to;
that just makes it harder to maintain the code.  When you see a
static function, you know that you don't have to look further than
the current file to understand how it's used.  When you see a global
function, the difficulty of knowing how it's used is an order of
magnitude higher, maybe more.  What's more, if you want to change it
then you have to worry about the possible side-effects on unknown
non-core code that might be calling it.

Is there a reason for not putting your new code itself into regexp.c?
        regards, tom lane


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

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: Bitmap index thoughts
Следующее
От: Koichi Suzuki
Дата:
Сообщение: Re: [PATCHES] Full page writes improvement