pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru>
To: jesper.pedersen@redhat.com
Cc: Dmitry Dolgov <9erthalion6@gmail.com>
Cc: pg@bowt.ie, Thomas Munro <thomas.munro@enterprisedb.com>
Cc: bhushan.uparkar@gmail.com, PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Alexander Korotkov <a.korotkov@postgrespro.ru>
Subject: Re: Index Skip Scan
Date: Thu, 13 Sep 2018 22:36:24 +0300
Message-ID: <3cfd317e-2a8b-8681-0833-8f2ead3af4d4@postgrespro.ru> (raw )
In-Reply-To: <11b7c9d1-ae00-4385-97b2-fcd45f0a1a71@redhat.com >
References: <707b6f68-16fa-7aa7-96e5-eeb4865e6a30@redhat.com >
<CAPpHfducUiDw7hVT=Vui8rxTmawCkVc0H--v=jdbztMUGhzuRg@mail.gmail.com >
<89F84E17-D684-4717-B66F-0F05CB00168E@gmail.com >
<CAEepm=1ikXHVgSNruQ1HydDZm3OLnLNb5qT2c8S=Mh-VsFQXcQ@mail.gmail.com >
<CAH2-WznxAN940e=2D8Auz06d=_ZK6F5LVH0HUMbCXGAa=Tirpw@mail.gmail.com >
<CAEepm=0S1JUUwKCK4jhmtTWm9VUTsCe3+b5tSvddpMpkzas7Hw@mail.gmail.com >
<CAH2-Wzkk0+vSAiaRSkX84KR0SofKkY1yGHEcLoRBXT-JjM37bw@mail.gmail.com >
<CA+q6zcV-wgnSMu-YOEmyXVckncQyriiKtUZXm=Gx2s+FV=5MDw@mail.gmail.com >
<c87d41ae-7c18-a3a1-96f2-f366a43412dc@redhat.com >
<522092c7-3cb7-a1ec-410b-dfa97ae722f3@postgrespro.ru >
<11b7c9d1-ae00-4385-97b2-fcd45f0a1a71@redhat.com >
El 13/09/18 a las 18:39, Jesper Pedersen escribió:
>
> Yes, this doesn't look good. Using your test case I'm seeing that
> unique is being chosen when the group size is below 34, and skip
> above. This is with the standard initdb configuration; did you change
> something else ? Or did you force the default plan ?
Sorry I didn't mention this, the first column is indeed forced skip
scan, just to see how it compares to index scan.
> This is something to look at -- maybe there is a way to use
> btpo_next/btpo_prev instead/too in order to speed things up. Atm we
> just have the scan key in BTScanOpaqueData. I'll take a look after my
> upcoming vacation; feel free to contribute those changes in the
> meantime of course.
>
I probably won't be able to contribute the changes, but I'll try to
review them.
--
Alexander Kuzmenkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
view thread (248+ messages) latest in thread
Message-ID: <3cfd317e-2a8b-8681-0833-8f2ead3af4d4@postgrespro.ru>
Permalink: ../3cfd317e-2a8b-8681-0833-8f2ead3af4d4@postgrespro.ru/
Also on: postgresql.org/message-id/3cfd317e-2a8b-8681-0833-8f2ead3af4d4@postgrespro.ru
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-hackers@postgresql.org
Cc: a.kuzmenkov@postgrespro.ru, jesper.pedersen@redhat.com, 9erthalion6@gmail.com, thomas.munro@enterprisedb.com, a.korotkov@postgrespro.ru
Subject: Re: Index Skip Scan
In-Reply-To: <3cfd317e-2a8b-8681-0833-8f2ead3af4d4@postgrespro.ru>
* 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