Re: Distinct types

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Distinct types
Дата
Msg-id E6B1A266-0F7C-4C23-94C3-2E5B36F17496@kineticode.com
обсуждение исходный текст
Ответ на Re: Distinct types  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Nov 28, 2008, at 5:09 PM, Andrew Dunstan wrote:

>> Speaking of other sorts of derived types: might they include
>> something just like enums, but sorting on the string values defined
>> for the enum rather than on the order in which the values were
>> defined in the enum? I'd use something like that all the time…
>
> order by foo_enum::text ...

Ah, I didn't realize that. I guess I'd have to index it on ::text,
too. And then, to use the index in WHERE clauses, I'd further have to
compare to ::text, eh?

Best,

David




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Comments to Synchronous replication patch v3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Review: Hot standby