octet_length operator: what encoding?

Поиск
Список
Период
Сортировка
От Chris Angelico
Тема octet_length operator: what encoding?
Дата
Msg-id CAPTjJmrve3q2Pc2Thhg7mFvQWCysHRcuoaKLL=uahZ8N-Kvoww@mail.gmail.com
обсуждение исходный текст
Ответы Re: octet_length operator: what encoding?  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Список pgsql-general
We have a number of varchar fields and I'm looking to see what the
greatest data length in any is, after UTF-8 encoding. The two-argument
length function appears (I think) to take a byte array, so it's the
opposite of what I'm looking for (give it a UTF-8 encoded string and
the second parameter 'UTF-8' and it'll count characters). The
octet_length function, though, doesn't accept an encoding argument.
What does it use?

ChrisA

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

Предыдущее
От: Toby Corkindale
Дата:
Сообщение: Re: How to tell if server is in backup mode?
Следующее
От: Ken Tanzer
Дата:
Сообщение: Re: default value returned from sql stmt