Re: Best way to use indexes for partial match at

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Best way to use indexes for partial match at
Дата
Msg-id 200511110932.38837.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: Best way to use indexes for partial match at  (Scott Marlowe <smarlowe@g2switchworks.com>)
Список pgsql-general
Scott Marlowe wrote:
> No, I wouldn't think one to one would be necessary.  If you had a
> primary key that was case insensitive, for example, it would not map
> one to one.  It would, in fact, be MORE greedy about matching, so
> that you could not have both a "Peter Eisentraut" and a "peter
> eisentraut" in the same table.

I suppose one could define equivalence classes that way, and if
everything else that interacted with the table (foreign keys, other
functions, etc.) behaved consistently with respect to those equivalence
classes, things would work out.  Lots of "if's" though.  The better and
safer way to do that, however, would be to define a data type.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: vishal saberwal
Дата:
Сообщение: Re: Recuperate each line of a result into a variable ?
Следующее
От: Guido Neitzer
Дата:
Сообщение: Re: Ordering and unicode