Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 40FD8650054 for ; Sat, 2 Aug 2008 08:39:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 82190-03 for ; Sat, 2 Aug 2008 08:39:20 -0300 (ADT) X-Greylist: delayed 01:00:00.324386 by SQLgrey-1.7.6 Received: from globalinn.com (mail.globalinn.se [80.75.24.2]) by postgresql.org (Postfix) with ESMTP id 81388650048 for ; Sat, 2 Aug 2008 08:39:24 -0300 (ADT) X-Antivirus-Scanned: McAfee Received: from [217.210.59.25] (account mathias HELO [10.0.1.200]) by globalinn.com (CommuniGate Pro SMTP 5.0.11) with ESMTPSA id 32594603 for pgsql-admin@postgresql.org; Sat, 02 Aug 2008 12:39:20 +0200 Message-Id: <080FA0CC-6B2E-4B5E-985C-79C5FF624638@globalinn.com> From: =?ISO-8859-1?Q?Mathias_Stjernstr=F6m?= To: pgsql-admin@postgresql.org In-Reply-To: <02cb01c8f3b1$83e51ad0$274610ac@praveenkm> Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-2-995675236" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Subject: Re: Nls sorting in Postgresql-8.3.3 X-Priority: 3 Date: Sat, 2 Aug 2008 12:39:19 +0200 References: <02cb01c8f3b1$83e51ad0$274610ac@praveenkm> X-Pgp-Agent: GPGMail d53 (v53, Leopard) X-Mailer: Apple Mail (2.928.1) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200808/7 X-Sequence-Number: 29852 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-2-995675236 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi! NLS stands for "Native Language Support" and it's used for display error/information messages in different languages. For sorting data you need to look at LC_COLLATE (http://www.postgresql.org/docs/8.3/interactive/locale.html ) You also need to check that you operation system support collation for your charset/encoding as PostgreSQL relies on the underling operation- systems collation support. FreeBSD for example does not support UTF-8 collation. On FreeBSD you need the supplied ICU (http://www.icu-project.org/ ) patch supplied by portage to get working UTF-8 collation. Best regards, Mathias Stjernstrom -------------------------------------- http://www.globalinn.com/ On 1 aug 2008, at 10.35, Praveen wrote: > Hello, > I installed postgresql-8.3.3 in our local server with option -- > enable-nls . After successful installion , I create database and > import data.But I am not aware how to use nls sort in this > postgresql-8.3.3 . > Please tell me syntax how to use nls sort in query , if some one > know. > Thanks in advance. > Praveen Malik. --Apple-Mail-2-995675236 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iQEcBAEBAgAGBQJIlDlYAAoJEMkN6DtuoU6XxUgH/3+qX+0OXSVL15Sz0MZD6Yrg XIJ0aMkqlZuvevVmOIN876ANO5OdhZsq3IEu7vJjqqnpUC7kDPuPyID3B3cGvy7Y xSkxgjXG4Qh/oBhu4cwydM3ymD9DYuu63v8EyhR3flbO4fpMBAsq3VHmlS62MLOO mePrn3aLT/A8WGwWnY5rMHZjCGIkn8+8f4zjvzWRuL2HuDBhOJ54ox1E0DZ/JXRc BbX95z/DZQw4iO+KEpVwqnQIjgqcEX5aRskBYZYO2zwcOOz3MCiAU5uVvFGwtEP6 M90D0ZOt302RzLjcs6LCKGIKNh4j9YqidIOfCTSVZuEdiFQA/j8SdDgIyMOYN10= =zXLq -----END PGP SIGNATURE----- --Apple-Mail-2-995675236--