ASCII Null control character validation

Поиск
Список
Период
Сортировка
От Alexey Chernyshov
Тема ASCII Null control character validation
Дата
Msg-id 20171130111307.550638eb@PostgresPro-A-Chernyshov
обсуждение исходный текст
Ответы Re: ASCII Null control character validation
Re: ASCII Null control character validation
Список pgsql-hackers
Hello, hackers!

I found in src/backend/utils/mb/wchar.c: pg_verify_mbstr_len() that it
reports ASCII Null character (\000) as invalid. As for me, it should
pass validation. However, ASCII Null character breaks a line and the
end of the line is missed, try:

INSERT INTO mytable VALUES (E'a\001b\000c and rest of line MIA');

Find patch attached. Am I wrong?

-- 
Alexey Chernyshov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
Вложения

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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: [HACKERS] Removing LEFT JOINs in more cases
Следующее
От: Ashutosh Bapat
Дата:
Сообщение: Re: [HACKERS] create_unique_path and GEQO