Re: OCTET_LENGTH is wrong
От
Hannu Krosing
Тема
Re: OCTET_LENGTH is wrong
Дата
Msg-id
3BFE7585.F0AA04E7@tm.ee
Список
Дерево обсуждения
OCTET_LENGTH is wrong Peter Eisentraut <peter_e@gmx.net>
Re: OCTET_LENGTH is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: OCTET_LENGTH is wrong Bruce Momjian <pgman@candle.pha.pa.us>
Re: OCTET_LENGTH is wrong Tatsuo Ishii <t-ishii@sra.co.jp>
Re: OCTET_LENGTH is wrong Tatsuo Ishii <t-ishii@sra.co.jp>
Re: OCTET_LENGTH is wrong Bruce Momjian <pgman@candle.pha.pa.us>
Re: OCTET_LENGTH is wrong Bruce Momjian <pgman@candle.pha.pa.us>
Re: OCTET_LENGTH is wrong Bruce Momjian <pgman@candle.pha.pa.us>
Re: OCTET_LENGTH is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: OCTET_LENGTH is wrong Peter Eisentraut <peter_e@gmx.net>
Re: OCTET_LENGTH is wrong Bruce Momjian <pgman@candle.pha.pa.us>
Re: OCTET_LENGTH is wrong Bruce Momjian <pgman@candle.pha.pa.us>
Re: OCTET_LENGTH is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: OCTET_LENGTH is wrong Bruce Momjian <pgman@candle.pha.pa.us>
Re: OCTET_LENGTH is wrong Bruce Momjian <pgman@candle.pha.pa.us>
Re: OCTET_LENGTH is wrong Karel Zak <zakkr@zf.jcu.cz>
Re: OCTET_LENGTH is wrong Tatsuo Ishii <t-ishii@sra.co.jp>
Re: OCTET_LENGTH is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: OCTET_LENGTH is wrong Stephan Szabo <sszabo@megazone23.bigpanda.com>
Re: OCTET_LENGTH is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: OCTET_LENGTH is wrong Bruce Momjian <pgman@candle.pha.pa.us>
Re: OCTET_LENGTH is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: OCTET_LENGTH is wrong Bruce Momjian <pgman@candle.pha.pa.us>
Re: OCTET_LENGTH is wrong Tatsuo Ishii <t-ishii@sra.co.jp>
Re: OCTET_LENGTH is wrong Peter Eisentraut <peter_e@gmx.net>
Re: OCTET_LENGTH is wrong Tom Lane <tgl@sss.pgh.pa.us>
Tom Lane wrote: > > Tatsuo Ishii writes: > > Yes. Consider you have UNICODE database and want to sort by French or > > whatever LATIN locale. > > SELECT * FROM t1 ORDER BY convert(text_column,'LATIN1'); > > would be the only way to accomplish that. > > That in itself would not get the job done; how is the sort operator > to know what collation order you want? > > The SQL92 spec suggests that the syntax should be > > ... ORDER BY text_column COLLATE French; > > (note collation names are not standardized AFAICT). Seems to me it > should then be the system's responsibility to make this happen, > including any encoding conversion that might be needed before the > comparisons could be done. Thanks to postgreSQL's flexibility you can currently make a contrib function convert(text_column,'LATIN1',locale) that returns a (new) text_with_locale type that has locale_aware comparison operators. -------------- Hannu
В списке pgsql-hackers по дате отправления