Re: sequential scan on child partition tables - Mailing list pgsql-performance

From Tom Lane
Subject Re: sequential scan on child partition tables
Date
Msg-id 22237.1255583724@sss.pgh.pa.us
Whole thread Raw
In response to sequential scan on child partition tables  (Anj Adu <fotographs@gmail.com>)
Responses Re: sequential scan on child partition tables
List pgsql-performance
Anj Adu <fotographs@gmail.com> writes:
> This query is doing a sequential scan on the child partitions even
> though indexes on all constrained columns are present

It looks to me like it's doing exactly what it is supposed to, ie,
indexscan on the partitions where it would help and seqscans on the
partitions where it wouldn't.  Indexscan is not better than seqscan
for retrieving all or most of a table.

            regards, tom lane

pgsql-performance by date:

Previous
From: Anj Adu
Date:
Subject: sequential scan on child partition tables
Next
From: Glyn Astill
Date:
Subject: [OT] Recommended whitebox server vendors in the UK?