Re: COPY-able sql log outputs

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: COPY-able sql log outputs
Дата
Msg-id 460E8481.3070707@hagander.net
обсуждение исходный текст
Ответ на Re: COPY-able sql log outputs  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> Then, it may be just me, but I find code like this:
>> !         sqllogFile = fopen(strcat(filename, ".sql"), "a");
>> very hard to read.
>
> Such coding should be rejected out of hand anyway --- can you say
> "buffer overrun"?

I was thinking that, but given that it only takes the config parameter
from postgresql.conf and no actual user input, I considered it less
important. But thinking twice, yeah, even in that case it shouldn't be
done, just to stay on the safe side.

//Magnus

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: COPY-able sql log outputs
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Current enums patch