Create index on user defined type

Поиск
Список
Период
Сортировка
От aditya desai
Тема Create index on user defined type
Дата
Msg-id CAN0SRDHgW+5-yGdLE-y6eCpWdffV7iexabGL1PmZOb7BU=QeWg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Create index on user defined type
Список pgsql-sql
Hi,
Is there any way to create index on user defined type in Postgresql? Need to create index on bug_status in bug table.

CREATE TYPE bug_status AS ENUM ('new', 'open', 'closed');

CREATE TABLE bug (
    id serial,
    description text,
    status bug_status
);

Regards,
Aditya.

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