Re: index on partitioned table - Mailing list pgsql-performance

From Robert Haas
Subject Re: index on partitioned table
Date
Msg-id 603c8f071002051023s3101e1f6r5d330b98b491d4bf@mail.gmail.com
Whole thread Raw
In response to index on partitioned table  ("Wojtek" <foo@twine.pl>)
List pgsql-performance
2010/2/5 Wojtek <foo@twine.pl>:
> Most of my queries will have where conditions on timedate and sys_device_id, but a lot of them will have additional
clause:where usefields is not null. Some of the queries will be limited on timedate only. 

What about a partial index on (timedate) WHERE usefields IS NOT NULL;
or maybe on (timedate, sys_device_id) WHERE usefields IS NOT NULL?

...Robert

pgsql-performance by date:

Previous
From: Robert Haas
Date:
Subject: Re: foreign key constraint lock behavour in postgresql
Next
From: Glenn Maynard
Date:
Subject: Re: Slow query: table iteration (8.3)