pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karen Stone <kstone@eldocomp.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Jacek Kołodziej <kolodziejj@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: RE: READ COMMITTED vs. index-only scans
Date: Wed, 17 Jan 2018 19:00:54 +0000
Message-ID: <95d1890b4a9b49f9b4236d837ee7a3dd@eldocomp.com> (raw)
In-Reply-To: <13012.1516215374@sss.pgh.pa.us>
References: <CAB=Xmr7uCWN7Jbvp5VxQ699EXBF3T_7ZCxz1N9xcsuNpoFgeOg@mail.gmail.com>
	<13012.1516215374@sss.pgh.pa.us>

Please remove me from this list.  Thanks.

Karen Stone| Technical Services| Eldorado |a Division of MphasiS 
5353 North 16th Street, Suite 400, Phoenix, Arizona 85016-3228 
Tel (928) 892 5735 | www.eldoinc.com | www.mphasis.com |kstone@eldocomp.com 


-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Sent: Wednesday, January 17, 2018 11:56 AM
To: Jacek Kołodziej <kolodziejj@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: READ COMMITTED vs. index-only scans

=?UTF-8?Q?Jacek_Ko=C5=82odziej?= <kolodziejj@gmail.com> writes:
> Here's what happening to me: the "A" query occasionally (in my case: 
> on the order of tenths per day) returns an ID _higher_ than any ID 
> present in second query's result (other conditions I haven't specified 
> do _not_ filter any more rows than "id <= max ID") - as if some 
> entries were visible for the first query, but not for the second one. 
> This is an inconsistency that is very problematic for me.

That sounds problematic to me too, but how certain are you that the "other conditions you haven't specified" aren't suppressing the last row?  That'd certainly be the least surprising explanation.  If it isn't that, though, this surely seems like a bug.

Can you determine whether the row(s) missing in the second query are freshly committed?  Or have they been there awhile?

> Where am I wrong? What am I missing? What information may I provide to 
> help with investigating this?

Probably the best thing to spend time on would be to try to extract a publishable test case.  It would be really hard to get to the bottom of an issue like this without having a reproducer.  It's okay if it takes awhile to reproduce the fault ...

Also, before spending a whole lot of time on this: are you on 9.6.6?
If not, update, just in case this is an already-fixed issue.  The symptoms don't sound familiar, but I don't want to waste a lot of time only to find out it's some manifestation of a known bug.

			regards, tom lane





view thread (10+ messages)  latest in thread

Message-ID: <95d1890b4a9b49f9b4236d837ee7a3dd@eldocomp.com>
Permalink:  ../95d1890b4a9b49f9b4236d837ee7a3dd@eldocomp.com/
Also on:    postgresql.org/message-id/95d1890b4a9b49f9b4236d837ee7a3dd@eldocomp.com

 · 

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-general@postgresql.org
  Cc: kstone@eldocomp.com, tgl@sss.pgh.pa.us, kolodziejj@gmail.com
  Subject: Re: READ COMMITTED vs. index-only scans
  In-Reply-To: <95d1890b4a9b49f9b4236d837ee7a3dd@eldocomp.com>
  References: <CAB=Xmr7uCWN7Jbvp5VxQ699EXBF3T_7ZCxz1N9xcsuNpoFgeOg@mail.gmail.com> <13012.1516215374@sss.pgh.pa.us> <95d1890b4a9b49f9b4236d837ee7a3dd@eldocomp.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