pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitry Dolgov <9erthalion6@gmail.com>
To: Stepan Yankevych <Stepan_Yankevych@epam.com>
Cc: stepya@ukr.net <stepya@ukr.net>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16089: Index only scan does not happen but expected
Date: Wed, 30 Oct 2019 16:10:06 +0100
Message-ID: <20191030151006.cja5q3hd6fclwuq4@localhost> (raw)
In-Reply-To: <VI1PR03MB3950392D14A2CABB979F130492600@VI1PR03MB3950.eurprd03.prod.outlook.com>
References: <16089-89312196238e2c78@postgresql.org>
	<20191030141316.lkzqxc5isoc4xbgz@localhost>
	<VI1PR03MB3950392D14A2CABB979F130492600@VI1PR03MB3950.eurprd03.prod.outlook.com>

> On Wed, Oct 30, 2019 at 02:18:09PM +0000, Stepan Yankevych wrote:
>
> >> And in fact at least in my tests this was indeed faster
> Can you show execution plan when index is used?
> Does it uses Index only scan or index scan and table scan?

Yes, at the bottom of the plan there was an Index Only Scan going
through l1_snapshot_201811 (although while populating the table I've set
values only for not nullable columns).





view thread (6+ messages)  latest in thread

Message-ID: <20191030151006.cja5q3hd6fclwuq4@localhost>
Permalink:  ../20191030151006.cja5q3hd6fclwuq4@localhost/
Also on:    postgresql.org/message-id/20191030151006.cja5q3hd6fclwuq4@localhost

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: 9erthalion6@gmail.com, Stepan_Yankevych@epam.com, stepya@ukr.net
  Subject: Re: BUG #16089: Index only scan does not happen but expected
  In-Reply-To: <20191030151006.cja5q3hd6fclwuq4@localhost>
  References: <16089-89312196238e2c78@postgresql.org> <20191030141316.lkzqxc5isoc4xbgz@localhost> <VI1PR03MB3950392D14A2CABB979F130492600@VI1PR03MB3950.eurprd03.prod.outlook.com> <20191030151006.cja5q3hd6fclwuq4@localhost>

* 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