Re: Best way to use indexes for partial match at

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: Best way to use indexes for partial match at
Дата
Msg-id dl2per$2tri$1@news.hub.org
обсуждение исходный текст
Ответ на Best way to use indexes for partial match at beginning  ("Andrus Moor" <eetasoft@online.ee>)
Ответы Re: Best way to use indexes for partial match at  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> (Hint: all the other ones use dictionary
> sorting rules, which have at least a discrimination against spaces.)

Tom,

thank you. I ran the following code in 8.1

show lc_collate; -- returns "Estonian_Estonia.1257"
create temp table foo ( bar char(10) ) on commit drop ;
insert into foo values ('A');
insert into foo values ('A  C'); -- two spaces
insert into foo values ('A B'); -- single space
insert into foo values ('A C'); -- single space
select * from foo order by bar;

and got

"A         "
"A  C      "
"A B       "
"A C       "

I don't see any space discrimination on sorting here.
I sorted the same data in Microsoft Word and got the same result.

Andrus.




В списке pgsql-general по дате отправления:

Предыдущее
От: Johnny Ljunggren
Дата:
Сообщение: Choosing PostgreSQL as the database for our next project
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Performance of autovacuum and full vacuum of database