Re: constraints in query plans

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeremy Drake <pgsql(at)jdrake(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: constraints in query plans
Date: 2006-10-16 03:20:38
Message-ID: 7438.1160968838@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jeremy Drake <pgsql(at)jdrake(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2006-10-16 03:27:54 Re: Threaded python on FreeBSD
Previous Message Jeremy Drake 2006-10-16 03:11:19 constraints in query plans