Re: resetStringInfo

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: resetStringInfo
Дата
Msg-id 1172942199.6571.49.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: resetStringInfo  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: resetStringInfo  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-patches
On Sat, 2007-03-03 at 11:23 -0500, Bruce Momjian wrote:
> Are there any places in our code where we could use it?

I manually grep'ed around and found a few places where resetStringInfo
can be used, but I probably didn't find them all: it's quite hard to
find all the places in which "StringInfo->len = 0" is assigned to, given
that the StringInfo might have any variable name, and variables like
"len" and "buf" are very common for other purposes.

Attached is a revised patch, I'll commit it later today.

-Neil


Вложения

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: POSIX shared memory support
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Allow \pset to parse "on or off" for boolean values