Re: constraints in query plans

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: constraints in query plans
Дата
Msg-id 7438.1160968838@sss.pgh.pa.us
обсуждение исходный текст
Ответ на constraints in query plans  (Jeremy Drake <pgsql@jdrake.com>)
Ответы Re: constraints in query plans  (Jeremy Drake <pgsql@jdrake.com>)
Список pgsql-hackers
Jeremy Drake <pgsql@jdrake.com> writes:
> CREATE TABLE test_domain (
>  fkey integer not null,
>  k    integer not null,
>  x1   integer not null,
>  x2   integer,
>  mp   m_or_p not null
> );

> CREATE INDEX test_domain_k_x1_x2_m ON test_domain (k, x1, x2) WHERE mp = 'm';
> CREATE INDEX test_domain_k_x1_x2_p ON test_domain (k, x1, x2) WHERE mp = 'p';

Perhaps you need a non-partial index.
        regards, tom lane


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

Предыдущее
От: Jeremy Drake
Дата:
Сообщение: constraints in query plans
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Threaded python on FreeBSD