Re: Fix possible bogus array out of bonds (src/backend/access/brin/brin_minmax_multi.c)

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Fix possible bogus array out of bonds (src/backend/access/brin/brin_minmax_multi.c)
Дата
Msg-id CAApHDvqxExQC3_GQLWDroEOncMw8ZpZesmFGsQ-fM_ARSB_WBA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Fix possible bogus array out of bonds (src/backend/access/brin/brin_minmax_multi.c)  (Ranier Vilela <ranier.vf@gmail.com>)
Список pgsql-hackers
On Fri, 2 Sept 2022 at 12:55, Ranier Vilela <ranier.vf@gmail.com> wrote:
> Why not?
> astate_values = accumArrayResult(astate_values,
>                           PointerGetDatum(a),
>                           false,
>                          TEXTOID,
>                          CurrentMemoryContext);
>
> Is it possible to avoid cstring_to_text conversion?

Note the element_type is being passed to accumArrayResult() as
TEXTOID, so we should be passing a text type, not a cstring type. The
conversion to text is required.

David



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

Предыдущее
От: "osumi.takamichi@fujitsu.com"
Дата:
Сообщение: test_decoding assertion failure for the loss of top-sub transaction relationship
Следующее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: PostgreSQL 15 release announcement draft