Re: constraints in query plans - Mailing list pgsql-hackers

From Tom Lane
Subject Re: constraints in query plans
Date
Msg-id 7438.1160968838@sss.pgh.pa.us
Whole thread Raw
In response to constraints in query plans  (Jeremy Drake <pgsql@jdrake.com>)
Responses Re: constraints in query plans
List 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 by date:

Previous
From: Jeremy Drake
Date:
Subject: constraints in query plans
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Threaded python on FreeBSD