Re: Collation rules and multi-lingual databases - Mailing list pgsql-hackers

From Stephan Szabo
Subject Re: Collation rules and multi-lingual databases
Date
Msg-id 20030823083122.K24780-100000@megazone.bigpanda.com
Whole thread Raw
In response to Re: Collation rules and multi-lingual databases  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
On 23 Aug 2003, Greg Stark wrote:

> Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
>
> > Since most of that work is for an exceptional case, maybe it'd be safer
> > (although slower) to structure the function as
>
> Yeah I thought of that. But if making it a critical section is cheap then it's
> probably a better approach. The problem with restoring the locale for the
> palloc is that if the user is unlucky he might sort a table of thousands of
> strings that all trigger the exception case.

True. I still worry about the critical section since an error will cause
the entire database system to restart, but as I'd also forgotten about
signals which might cause problems (uncertain without looking) I'm not
sure you have a good alternative even not counting the speed issues.



pgsql-hackers by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: Single-file DBs WAS: Need concrete 'Why Postgres
Next
From: Joe Conway
Date:
Subject: Re: Collation rules and multi-lingual databases