Re: Re[2]: BUG #17561: Server crashes on executing row() with very long argument list

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Re: Re[2]: BUG #17561: Server crashes on executing row() with very long argument list
Дата
Msg-id CAMbWs48GiU-qucoJwH-p0pUY0OnrxZPXQjv7+HGzEPv6D18Vpg@mail.gmail.com
обсуждение исходный текст
Ответ на Re[2]: BUG #17561: Server crashes on executing row() with very long argument list  (Егор Чиндяскин <kyzevan23@mail.ru>)
Ответы Re: Re[2]: BUG #17561: Server crashes on executing row() with very long argument list  (Richard Guo <guofenglinux@gmail.com>)
Список pgsql-bugs

On Mon, Aug 1, 2022 at 3:17 PM Егор Чиндяскин <kyzevan23@mail.ru> wrote:
Thank you, Tom! The fix works for that case, but there is another one.
I got server crashed while executing the following script: 
 
(echo "SELECT * FROM json_to_record('{\"0\":0 ";for((i=1;i<100001;i++));do echo ",\"$i\":$i";done; echo "}') as x("; echo "\"0\" int";for((i=1;i<100001;i++));do echo ",\"$i\" int";done;echo ")") | psql 

Thanks for the report! This is another place that we construct a tupdesc
with more than MaxAttrNumber attributes, via RangeFunctions this time.

Regarding the fix, how about we check the length of coldeflist against
MaxTupleAttributeNumber in transformRangeFunction()?

Thanks
Richard

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

Предыдущее
От: Stanisław Skonieczny
Дата:
Сообщение: Re: BUG #17560: Planner can not find plan with lowest cost
Следующее
От: Richard Guo
Дата:
Сообщение: Re: Re[2]: BUG #17561: Server crashes on executing row() with very long argument list