Re: BUG #18247: Integer overflow leads to negative width

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Re: BUG #18247: Integer overflow leads to negative width
Дата
Msg-id CAMbWs48nZf9XgAVpXbOnwGWWLnmoOZb51wnhkNW5xfz_PyOyCw@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #18247: Integer overflow leads to negative width  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #18247: Integer overflow leads to negative width  (Julien Rouhaud <rjuju123@gmail.com>)
Re: BUG #18247: Integer overflow leads to negative width  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs

On Thu, Dec 14, 2023 at 5:29 PM PG Bug reporting form <noreply@postgresql.org> wrote:
EXPLAIN SELECT * FROM t;
                         QUERY PLAN                         
------------------------------------------------------------
 Seq Scan on t  (cost=0.00..10.00 rows=1 width=-2113929008)
(1 row)

Interesting.  In an Assert-enabled build this query will cause the
Assert failure in set_rel_width().

    Assert(tuple_width >= 0);

Can we just error out when an overflow occurs?

Thanks
Richard

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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: BUG #18244: Corruption in indexes involving whole-row expressions
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: BUG #18247: Integer overflow leads to negative width