Re: Simplify formatting.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Simplify formatting.c
Дата
Msg-id 13542.1211250544@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Simplify formatting.c  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Simplify formatting.c  (Euler Taveira de Oliveira <euler@timbira.com>)
Список pgsql-patches
Bruce Momjian <bruce@momjian.us> writes:
> Now that upper/lower/initcase do not modify the passed string, I have
> simplified formatting.c with the attached patch.

I was thinking the same thing while reading the patch.  But please,
make str_toupper() and friends declare their argument "const" if you're
going to do this.

Another issue in this area is that these functions could do with some
refactoring to eliminate useless text/cstring conversions; I'm pretty
sure some code paths are doing cstring->text->cstring in direct
succession.  Also, it seems a bit inconsistent to be relying on
oracle_compat.c for upper/lower but not initcap.

            regards, tom lane

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

Предыдущее
От: Andrew Chernow
Дата:
Сообщение: Re: libpq object hooks (libpq events)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: libpq object hooks (libpq events)