Re: [pgsql-hackers-win32] snprintf causes regression

Поиск
Список
Период
Сортировка
От pgsql@mohawksoft.com
Тема Re: [pgsql-hackers-win32] snprintf causes regression
Дата
Msg-id 16674.24.91.171.78.1109799508.squirrel@mail.mohawksoft.com
обсуждение исходный текст
Ответ на Re: [pgsql-hackers-win32] snprintf causes regression tests to fail  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> Tom Lane wrote:
>>> First line of thought: we surely must not insert a snprintf into
>>> libpq.so unless it is 100% up to spec *and* has no performance issues
>>> ... neither of which can be claimed of the CVS-tip version.
>
>> Agreed, and we have to support all the 64-bit specifications a port
>> might support like %qd and %I64d as well as %lld.  I have added that to
>> our current CVS version.
>
> I really dislike that idea and request that you revert it.
>
>> Is there any way we can have just gettext() call our snprintf under a
>> special name?
>
> The issue only comes up in libpq --- in the backend there is no reason
> that snprintf can't be our snprintf, and likewise in self-contained
> programs like psql.  It might be worth the pain-in-the-neck quality to
> have libpq refer to the functions as pq_snprintf etc.  Perhaps we could
> do this via macros
>
> #define snprintf    pq_snprintf

Didn't I suggest that earlier? :) Also, since it is vsnprintf that seems
to be a bigger issue:

#define vsnprintf pq_vsnprintf

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

Предыдущее
От: Mark Wong
Дата:
Сообщение: Re: 8.0.X and the ARC patent
Следующее
От: Mark Wong
Дата:
Сообщение: Re: 8.0.X and the ARC patent