pgsql: Catch invalid typlens in a couple of places

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Catch invalid typlens in a couple of places
Дата
Msg-id E1iRYnS-0000tC-Jb@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Catch invalid typlens in a couple of places

Rearrange the logic in record_image_cmp() and record_image_eq() to
error out on unexpected typlens (either not supported there or
completely invalid due to corruption).  Barring corruption, this is
not possible today but it seems more future-proof and robust to fix
this.

Reported-by: Peter Geoghegan <pg@bowt.ie>

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/878a9b09c729a6ec6bc0b5e3a66b7715a18d0d8e

Modified Files
--------------
src/backend/utils/adt/rowtypes.c | 117 ++++++++++++++++++++-------------------
1 file changed, 61 insertions(+), 56 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Suppress warning from older compilers.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Fix some compiler warnings on older compilers