pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lincoln Yeoh <lyeoh@pop.jaring.my>
To: Martijn van Oosterhout <kleptog@svana.org>
To: Salem Berhanu <salemb4@hotmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: postgres & server encodings
Date: Wed, 10 Aug 2005 00:52:00 +0800
Message-ID: <5.2.1.1.1.20050810002451.040956b8@localhost> (raw)
In-Reply-To: <20050809155946.GF8244@svana.org>
References: <BAY103-F36DC25F51006C5179B29E0EFB80@phx.gbl>
	<BAY9-F39yzvZlhK3CHl0007db08@hotmail.com>
	<BAY103-F36DC25F51006C5179B29E0EFB80@phx.gbl>

At 05:59 PM 8/9/2005 +0200, Martijn van Oosterhout wrote:

>SQL_ASCII means that the database does no locale specific or language
>specific encoding ever. It won't check what you send it either. If
>you're content to let clients deal with any encoding issues, this may
>be what you want.
>
>But anything to do with lower(), upper(), case-insenstive in the
>database itself will be totally stupid since it's assuming ASCII.

Is it possible or even good to have the ability to allow you to pick a 
particular locale for a query/function?

e.g. select * from messages where locale_code=$locale_code order by 
locale_code, multilocale_lower(message,locale);

Or even:

create index lower_keyword_idx on keywords (multilocale_lower(keyword,locale))
(there's a column called locale in both tables)

Does that actually make sense? ;)

I suppose we can do that in the client. But it'll be nicer if we can use 
"order by", "group by", and do it for more than one locale at a time.

Can Postgresql currently handle more than one locale within the same 
database AND have some useful locale sensitive DB functions?

Regards,
Link.





view thread (9+ messages)  latest in thread

Message-ID: <5.2.1.1.1.20050810002451.040956b8@localhost>
Permalink:  ../5.2.1.1.1.20050810002451.040956b8@localhost/
Also on:    postgresql.org/message-id/5.2.1.1.1.20050810002451.040956b8@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: lyeoh@pop.jaring.my, kleptog@svana.org, salemb4@hotmail.com, pgsql-general@postgresql.org
  Subject: Re: postgres & server encodings
  In-Reply-To: <5.2.1.1.1.20050810002451.040956b8@localhost>
  References: <BAY103-F36DC25F51006C5179B29E0EFB80@phx.gbl> <BAY9-F39yzvZlhK3CHl0007db08@hotmail.com> <5.2.1.1.1.20050810002451.040956b8@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox