pgsql: Improve check for overly-long extensible node name.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Improve check for overly-long extensible node name.
Дата
Msg-id E1afWgw-0006Oq-U0@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Improve check for overly-long extensible node name.

The old code is bad for two reasons.  First, it has an off-by-one
error.  Second, it won't help if you aren't running with assertions
enabled.  Per discussion, we want a check here in that case too.

Author: KaiGai Kohei, adjusted by me.
Reviewed-by: Petr Jelinek
Discussion: 56E0D547.1030101@2ndquadrant.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3adf9ced17dfa84faa209127b4499e5a5b995806

Modified Files
--------------
src/backend/nodes/extensible.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: pg_stat_get_progress_info() should be marked STRICT.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Use repalloc_huge() to enlarge a SPITupleTable's tuple pointer a