Re: Partial aggregates pushdown

Поиск
Список
Период
Сортировка
От Alexander Pyhalov
Тема Re: Partial aggregates pushdown
Дата
Msg-id 317f8de58ce9889e056f2944e200a44d@postgrespro.ru
обсуждение исходный текст
Ответ на Re: Partial aggregates pushdown  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: Partial aggregates pushdown  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
Daniel Gustafsson писал 2021-11-03 16:45:
>> On 2 Nov 2021, at 10:12, Alexander Pyhalov <a.pyhalov@postgrespro.ru> 
>> wrote:
> 
>> Updated and rebased patch.
> 
> +    state = (Int128AggState *) palloc0(sizeof(Int128AggState));
> +    state->calcSumX2 = false;
> +
> +    if (!PG_ARGISNULL(0))
> +    {
> +#ifdef HAVE_INT128
> +        do_int128_accum(state, (int128) PG_GETARG_INT64(0));
> +#else
> +        do_numeric_accum(state, int64_to_numeric(PG_GETARG_INT64(0)));
> +#endif
> 
> This fails on non-INT128 platforms as state cannot be cast to 
> Int128AggState
> outside of HAVE_INT128; it's not defined there.  This needs to be a
> PolyNumAggState no?

Hi.
Thank you for noticing this. It's indeed fails with 
pgac_cv__128bit_int=no.
Updated patch.
-- 
Best regards,
Alexander Pyhalov,
Postgres Professional
Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Parallelize correlated subqueries that execute within each worker
Следующее
От: Geoff Winkless
Дата:
Сообщение: Re: Should we support new definition for Identity column : GENERATED BY DEFAULT ON NULL?