Re: Make printtup a bit faster

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Make printtup a bit faster
Дата
Msg-id 185759.1777900184@sss.pgh.pa.us
обсуждение
Ответ на Re: Make printtup a bit faster  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> FWIW, I've experimented fixing this overhead before, and what I did was to
> pass an optional context via the fcinfo, and output / send functions could use
> memory allocated via that optional context object, rather than doing it
> allocating in CurrentMemoryContext.  For the send functions that looks
> reasonably clean, given that it already deals with a stringinfo. For out
> functions it's a bit uglier, but still somewhat acceptable.

Hmm, yeah, that could be a route to building a new optional API
without causing compatibility problems everywhere.

            regards, tom lane



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