X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 61489475DC8 for ; Wed, 19 Feb 2003 15:37:35 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 47368-08 for ; Wed, 19 Feb 2003 15:37:24 -0500 (EST) Received: from gyw.com (gyw.com [209.55.67.177]) by postgresql.org (Postfix) with ESMTP id 57D5B475458 for ; Wed, 19 Feb 2003 15:22:39 -0500 (EST) Received: from spi.tksoft.com (smtp3.tksoft.com [192.168.50.56] (may be forged)) by gyw.com (8.8.8/8.8.8) with ESMTP id MAA13207 for ; Wed, 19 Feb 2003 12:26:43 -0800 Received: from tksoft.com (tksoft.com [127.0.0.1]) by spi.tksoft.com (8.12.4/8.12.4) with ESMTP id h1JKGTbJ014872; Wed, 19 Feb 2003 12:16:29 -0800 Received: (from tjk@tksoft.com) by tksoft.com (8.12.4/8.12.4/Submit) id h1JKGSEU014871; Wed, 19 Feb 2003 12:16:28 -0800 Message-Id: <200302192016.h1JKGSEU014871@tksoft.com> Subject: Re: once again, sorting with Unicode To: tgl@sss.pgh.pa.us (Tom Lane) Date: Wed, 19 Feb 2003 12:16:28 -0800 (PST) Cc: postgre@totw.org (JBJ), pgsql-sql@postgresql.org Reply-To: tjk@tksoft.com (Troy K.), In-Reply-To: <11412.1045668157@sss.pgh.pa.us> from "Tom Lane" at Feb 19, 2003 10:22:37 AM From: "Troy" X-Info: None MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/435 X-Sequence-Number: 11833 You can generate indexes for your custom functions, though, which will speed things up. This is what I've done, successfully. Troy > > JBJ writes: > > Furthermore I will have to be able to switch between is_IS and others to > > get the correct sort order ( russian sort order different from icelandic > > for example, simply due to the nature of the letters) live when the user > > selects a different language. > > Postgres can't do that at the moment :-(. You might be able to hack up > some custom functions to do something like > ORDER BY icelandic(text_col) > but it'll be messy, and probably slow. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >