pgsql: Check DCH_MAX_ITEM_SIZ limits with <=, not <.

Поиск
Список
Период
Сортировка
От Noah Misch
Тема pgsql: Check DCH_MAX_ITEM_SIZ limits with <=, not <.
Дата
Msg-id E1YJxFy-00036G-3R@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Check DCH_MAX_ITEM_SIZ limits with <=, not <.

We reserve space for the full amount, not one less.  The affected checks
deal with localized month and day names.  Today's DCH_MAX_ITEM_SIZ value
would suffice for a 60-byte day name, while the longest known is the
49-byte mn_CN.utf-8 word for "Saturday."  Thus, the upshot of this
change is merely to avoid misdirecting future readers of the code; users
are not expected to see errors either way.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/237795a7b4ccf359423bdd99476782d4880eda83

Modified Files
--------------
src/backend/utils/adt/formatting.c |   24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Be more careful to not lose sync in the FE/BE protocol.
Следующее
От: Noah Misch
Дата:
Сообщение: pgsql: Assert(PqCommReadingMsg) in pq_peekbyte().