Re: pg11: Query using index, but only for half the partitions - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: pg11: Query using index, but only for half the partitions
Date
Msg-id 83a2b0ef-1376-1873-3524-a824cb69f7f2@a-kretschmer.de
Whole thread Raw
In response to pg11: Query using index, but only for half the partitions  (Stefan Knecht <knecht.stefan@gmail.com>)
Responses Re: pg11: Query using index, but only for half the partitions
List pgsql-general

Am 23.04.20 um 10:13 schrieb Stefan Knecht:
> Seq Scan on snap_20200225 s  (cost=0.00..1.19 rows=1 width=12) 

the partition is very small, so it's cheaper to scan only the table (one 
block) than index + table (1 + 1 block).


Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com




pgsql-general by date:

Previous
From: Stefan Knecht
Date:
Subject: pg11: Query using index, but only for half the partitions
Next
From: Stefan Knecht
Date:
Subject: Re: pg11: Query using index, but only for half the partitions