| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера