pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Josh Berkus <josh@agliodbs.com>
To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: Strange choice of general index over partial index
Date: Fri, 16 Jan 2015 16:28:34 +1300
Message-ID: <54B88562.4040500@agliodbs.com> (raw )
In-Reply-To: <WM!bd986673a511b02b489c306ecc729f4970c2ac7e1bcf45f2ff7606636153ff155b8e4a243cf2ec0002a397fb5fd92900!@asav-3.01.com >
References: <54B83F70.7080004@agliodbs.com >
<54B85D32.7090106@catalyst.net.nz >
<54B87820.3090101@catalyst.net.nz >
<54B88032.7020206@catalyst.net.nz >
<54B882B8.2050303@catalyst.net.nz >
<WM!bd986673a511b02b489c306ecc729f4970c2ac7e1bcf45f2ff7606636153ff155b8e4a243cf2ec0002a397fb5fd92900!@asav-3.01.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
On 01/16/2015 04:17 PM, Mark Kirkwood wrote:
> On 16/01/15 16:06, Mark Kirkwood wrote:
>
>> A bit more poking about shows that the major factor (which this fake
>> dataset anyway) is the default for effective_cache_size (changes from
>> 128MB to 4GB in 9.4). Increasing this makes 9.2 start using the
>> files_in_flight index in a plain index scan too.
>>
>
> Arrg - misread the planner output....in 9.2 what changes is a plan that
> uses an index scan on the *file_state* index (not
> files_in_flight)...which appears much faster than the bitmap scan on
> file_state. Apologies for the confusion.
>
> I'm thinking that I'm seeing the effect Tom has just mentioned.
It's not using a bitmapscan in either case; it's a straight indexscan.
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
view thread (11+ messages) latest in thread
Message-ID: <54B88562.4040500@agliodbs.com>
Permalink: ../54B88562.4040500@agliodbs.com/
Also on: postgresql.org/message-id/54B88562.4040500@agliodbs.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, mark.kirkwood@catalyst.net.nz
Subject: Re: Strange choice of general index over partial index
In-Reply-To: <54B88562.4040500@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox