Re: not null constraints, again

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: not null constraints, again
Дата
Msg-id 3649828.1731083171@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: not null constraints, again  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: not null constraints, again
Список pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> But we'll see what else the buildfarm has to say now that I pushed it ...

A lot of the buildfarm is saying

 adder         | 2024-11-08 13:04:39 | ../pgsql/src/backend/catalog/pg_constraint.c:708:37: warning: comparison is
alwaystrue due to limited range of data type [-Wtype-limits] 

which evidently is about this:

    Assert(colnum > 0 && colnum <= MaxAttrNumber);

The memcpy right before that doesn't seem like project style either.
Most other places that are doing similar things just cast the
ARR_DATA_PTR to the right pointer type and dereference it.

            regards, tom lane



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