Re: Unicode escapes with any backend encoding

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unicode escapes with any backend encoding
Дата
Msg-id 16526.1583522353@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Unicode escapes with any backend encoding  (John Naylor <john.naylor@2ndquadrant.com>)
Ответы Re: Unicode escapes with any backend encoding  (Chapman Flack <chap@anastigmatix.net>)
Список pgsql-hackers
John Naylor <john.naylor@2ndquadrant.com> writes:
> Not this patch's job perhaps, but now that check_unicode_value() only
> depends on the input, maybe it can be put into pgwchar.h with other
> static inline helper functions? That test is duplicated in
> addunicode() and pg_unicode_to_server(). Maybe:

> static inline bool
> codepoint_is_valid(pgwchar c)
> {
>    return (c > 0 && c <= 0x10FFFF);
> }

Seems reasonable, done.

> Maybe Chapman has a use case in mind he can test with? Barring that,
> the patch seems ready for commit.

I went ahead and pushed this, just to get it out of my queue.
Chapman's certainly welcome to kibitz some more of course.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Symbolic names for the values of typalign and typstorage
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: WAL usage calculation patch