Re: sequential scan on child partition tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Anj Adu <fotographs(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: sequential scan on child partition tables
Date: 2009-10-15 05:15:24
Message-ID: 22237.1255583724@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Anj Adu <fotographs(at)gmail(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Glyn Astill 2009-10-15 09:34:54 [OT] Recommended whitebox server vendors in the UK?
Previous Message Anj Adu 2009-10-15 02:31:04 sequential scan on child partition tables