From: | Kevin Grittner <kgrittn(at)ymail(dot)com> |
---|---|
To: | "naman(dot)iitb" <naman(dot)bbps(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Creating partial index on a relation |
Date: | 2013-10-31 12:42:01 |
Message-ID: | 1383223321.55824.YahooMailNeo@web162902.mail.bf1.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
naman.iitb <naman(dot)bbps(at)gmail(dot)com> wrote:
> An example of partial index that i need is if my My table1 schema
> is (a int ,b int ,c int)
>
> index on c where a is null, b is null and c is not null
Your question is not very clear, but perhaps you are looking for
something like this:
CREATE INDEX index1 ON table1 (c)
WHERE a IS NULL AND b IS NULL AND c IS NOT NULL;
This list is for discussion of adding features and fixing bugs in
the the PostgreSQL product. For future posts requesting help with
*using* PostgreSQL please use the pgsql-general list.
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2013-10-31 12:44:54 | Re: How can I build OSSP UUID support on Windows to avoid duplicate UUIDs? |
Previous Message | MauMau | 2013-10-31 12:40:07 | [bug fix] PostgreSQL fails to start on Windows if it crashes after tablespace creation |