pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Cc: pavan.deolasee@gmail.com
Subject: Re: [COMMITTERS] pgsql: Release note updates.
Date: Tue, 7 Feb 2017 12:59:31 -0300
Message-ID: <20170207155931.vgzv5umuyfvp4bqz@alvherre.pgsql> (raw)
In-Reply-To: <20170207152309.szeiqnprt2kzij66@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Alvaro Herrera wrote:
> Tom Lane wrote:
> > Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> 
> > > May I suggest
> > 
> > > +      If <command>CREATE INDEX CONCURRENTLY</> was used to build an index
> > > +      that depends on a column not previously indexed, then rows
> > > +      updated by transactions that ran concurrently with
> > > +      the <command>CREATE INDEX</> command could have missed receiving
> > > +      index entries.
> > 
> > Can we say "pre-existing rows that were updated by...", or is that
> > too optimistic?
> 
> Hmm.  Now that I think about it, it is probably possible to have a
> transaction started before CIC that inserted a bunch of rows, and then
> runs the UPDATE during the CIC race window.  Maybe there's a reason the
> bug wouldn't hit in that case but I don't see it, and I'm not able to
> test it right now to verify.

Pavan adds that it's possible to have a transaction do INSERT while CIC
is running, then some other transaction executes the UPDATE.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (8+ messages)  latest in thread

Message-ID: <20170207155931.vgzv5umuyfvp4bqz@alvherre.pgsql>
Permalink:  ../20170207155931.vgzv5umuyfvp4bqz@alvherre.pgsql/
Also on:    postgresql.org/message-id/20170207155931.vgzv5umuyfvp4bqz@alvherre.pgsql

 · 

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-committers@postgresql.org
  Cc: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org, pavan.deolasee@gmail.com
  Subject: Re: [COMMITTERS] pgsql: Release note updates.
  In-Reply-To: <20170207155931.vgzv5umuyfvp4bqz@alvherre.pgsql>
  References: <20170207152309.szeiqnprt2kzij66@alvherre.pgsql> <20170207155931.vgzv5umuyfvp4bqz@alvherre.pgsql>

* 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