Re: Don't overwrite scan key in systable_beginscan()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Don't overwrite scan key in systable_beginscan()
Дата
Msg-id 2440855.1723145284@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Don't overwrite scan key in systable_beginscan()  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Aug 8, 2024 at 2:46 AM Peter Eisentraut <peter@eisentraut.org> wrote:
>> I propose to fix that by making a copy of the scan keys passed by the
>> caller and make the modifications there.

> This does have the disadvantage of adding more palloc overhead.

It seems hard to believe that one more palloc + memcpy is going to be
noticeable in the context of an index scan.

            regards, tom lane



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