Re: [COMMITTERS] pgsql: Release note updates.

From: Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Release note updates.
Date: 2017-02-07 12:03:56
Message-ID: CABOikdNNqHWDAuP9vS3tH4Qzks1SRrQ6K2aAYz-m7xBL6LK83A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Tue, Feb 7, 2017 at 5:23 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
wrote:

> Tom Lane wrote:
> > Release note updates.
> >
> > Add item for last-minute CREATE INDEX CONCURRENTLY fix.
>
> Hi,
>
> Sorry for not noticing earlier, but there is a bug in the notes:
>
> + If <command>CREATE INDEX CONCURRENTLY</> was used to build an index
> + that depends on a column not previously indexed, then rows inserted
> + or updated by transactions that ran concurrently with
> + the <command>CREATE INDEX</> command could have received incorrect
> + index entries.
>
> CIC bug does not affect inserted rows, only updated rows, since the
> bogus bitmap is only used to compute whether to omit index tuples for
> HOT considerations.
>

That's correct.

>
> Also, the bollixed rows do not receive incorrect index entries -- they
> just do not receive any index entry at all.
>
>
I think it's somewhat both. While it's true that the updated rows may not
get new index entries as they deserve, they will be reachable from the
older index entries. So while a query such as "SELECT * FROM tab WHERE key
= newval" may not return any result, "SELECT * FROM tab WHERE key = oldval"
may actually return the updated (and wrong) tuple.

Thanks,
Pavan

--
Pavan Deolasee http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-02-07 14:17:25 Re: [COMMITTERS] pgsql: Release note updates.
Previous Message Alvaro Herrera 2017-02-07 11:53:57 Re: [COMMITTERS] pgsql: Release note updates.

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2017-02-07 12:10:16 DROP SUBSCRIPTION and ROLLBACK
Previous Message Alvaro Herrera 2017-02-07 11:53:57 Re: [COMMITTERS] pgsql: Release note updates.