Re: libpq: PQgetCopyData() and allocation overhead

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq: PQgetCopyData() and allocation overhead
Дата
Msg-id 2560654.1677869610@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq: PQgetCopyData() and allocation overhead  (Jeroen Vermeulen <jtvjtv@gmail.com>)
Ответы Re: libpq: PQgetCopyData() and allocation overhead  (Jeroen Vermeulen <jtvjtv@gmail.com>)
Список pgsql-hackers
Jeroen Vermeulen <jtvjtv@gmail.com> writes:
> The printf() is just the simplest example that sprang to mind though.
> There may be other use-cases out there involving  libraries that require
> zero-terminated strings, and I figured an ability to set a sentinel could
> help those.

Well, since it won't help for binary COPY, I'm skeptical that this is
something we should cater to.  Anybody who's sufficiently worried about
performance to be trying to remove malloc/free cycles ought to be
interested in binary COPY as well.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: libpq-fe.h should compile *entirely* standalone
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: zstd compression for pg_dump