Re: Question regarding UTF-8 data and "C" collation on definition of field of table
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Question regarding UTF-8 data and "C" collation on definition of field of table |
| Дата | |
| Msg-id | 2550995.1675639480@sss.pgh.pa.us обсуждение |
| Ответ на | Question regarding UTF-8 data and "C" collation on definition of field of table (Dionisis Kontominas <dkontominas@gmail.com>) |
| Ответы |
Re: Question regarding UTF-8 data and "C" collation on definition of field of table
|
| Список | pgsql-general |
Dionisis Kontominas <dkontominas@gmail.com> writes:
> Let's say that the definition is for example as follows:
> name character varying(8) COLLATE pg_catalog."C" NOT NULL
> and also assume that the database default encoding is UTF8 and also the
> Collate and Ctype is "C"". I plan to store strings of various languages in
> this field.
> Are these the correct settings that I should have used on creation of
> the database?.
Well, it won't crash or anything, but sorting will be according
to byte-by-byte values. So the sort order of non-ASCII text is
likely to look odd. How much do you care about that?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера