Re: RES: [GENERAL] Order by behaviour

2007-04-06 Thread Martijn van Oosterhout
On Thu, Apr 05, 2007 at 06:46:27PM -0300, Carlos H. Reimer wrote: > Hi, > > I was trying to find the docs about the collating sequence standards but > could not find. > > Would like to know for example which characters are ignored by the "order > by" in some of the collating types. There are no

RES: [GENERAL] Order by behaviour

2007-04-05 Thread Carlos H. Reimer
standards? Thanks in advance! > -Mensagem original- > De: Stephan Szabo [mailto:[EMAIL PROTECTED] > Enviada em: quarta-feira, 28 de março de 2007 19:23 > Para: Carlos H. Reimer > Cc: pgsql-general@postgresql.org > Assunto: Re: [GENERAL] Order by behaviour > > > On Wed

Re: RES: [GENERAL] Order by behaviour

2007-03-29 Thread Stephan Szabo
On Thu, 29 Mar 2007, Carlos H. Reimer wrote: > Humm, ok, it is clear now. > > And is there a way to change something in this behaviour, like not ignore > spaces and some type of symbols? Well, right now it's generally determined by your OS's definition of the locale you've chosen. You might be ab

Re: RES: [GENERAL] Order by behaviour

2007-03-29 Thread Richard Huxton
Carlos H. Reimer wrote: Humm, ok, it is clear now. And is there a way to change something in this behaviour, like not ignore spaces and some type of symbols? A configuration file or a patch? Pick a different locale? -- Richard Huxton Archonet Ltd ---(end of broad

RES: [GENERAL] Order by behaviour

2007-03-29 Thread Carlos H. Reimer
han Szabo > Enviada em: quarta-feira, 28 de março de 2007 19:23 > Para: Carlos H. Reimer > Cc: pgsql-general@postgresql.org > Assunto: Re: [GENERAL] Order by behaviour > > > On Wed, 28 Mar 2007, Carlos H. Reimer wrote: > > > Hi, > > > > We have a PostgreSQL 8.0

Re: [GENERAL] Order by behaviour

2007-03-28 Thread Stephan Szabo
On Wed, 28 Mar 2007, Carlos H. Reimer wrote: > Hi, > > We have a PostgreSQL 8.0.6 cluster configured with lc_collate=pt_BR.UTF-8 > and when we run the following SELECT: > SELECT substr(nomerazao,1,4), > ascii(substr(nomerazao,1,1)), > ascii(substr(nomerazao,2,1)) > from spunico.unico order by nome

Re: [GENERAL] Order by behaviour

2007-03-28 Thread Peter Eisentraut
Carlos H. Reimer wrote: > Are not the lines out of order No. > or is it a normal behaviour for a > server with lc_collate=pt_BR.UTF-8? Yes. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: Don't 'kill

Re: [GENERAL] Order by behaviour

2007-03-28 Thread Raymond O'Donnell
On 28/03/2007 22:52, Carlos H. Reimer wrote: SELECT substr(nomerazao,1,4), ascii(substr(nomerazao,1,1)), ascii(substr(nomerazao,2,1)) from spunico.unico order by nomerazao; You need to add aliases to the returned column by which you'd like to order the result: your query is ordering the rows

[GENERAL] Order by behaviour

2007-03-28 Thread Carlos H. Reimer
Hi, We have a PostgreSQL 8.0.6 cluster configured with lc_collate=pt_BR.UTF-8 and when we run the following SELECT: SELECT substr(nomerazao,1,4), ascii(substr(nomerazao,1,1)), ascii(substr(nomerazao,2,1)) from spunico.unico order by nomerazao; is returning: substr | ascii | ascii +-