pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tobias Bussmann <t.bussmann@gmx.net>
Cc: pgsql-bugs@lists.postgresql.org, Jürg Senn <juerg.senn@scnat.ch>
Subject: Re: segfault with expression index, btree_gist and HOT Update
Date: Wed, 7 Nov 2018 11:49:57 -0300
Message-ID: <20181107144957.rxhrkbiribnh7yvg@alvherre.pgsql> (raw)
In-Reply-To: <77EC85F8-B515-4CD3-B68E-26D82CF48D58@gmx.net>

On 2018-Nov-07, Tobias Bussmann wrote:

> Hello,
> 
> my colleague Jürg Senn recently found a backend crash in Postgres 11 and trimmed it down to a reproducible test case. Testing revealed the crash is still present in last week's master branch but not in 10. I further simplified the test case to:
> 
> CREATE EXTENSION btree_gist;
> CREATE TABLE segfault (i int);
> CREATE INDEX ON segfault USING gist ((i + 10));
> INSERT INTO segfault VALUES (1);
> UPDATE segfault SET i = 2;
> 
> Our tests were performed on macOS: PostgreSQL 12devel on x86_64-apple-darwin17.7.0, compiled by Apple LLVM version 9.1.0 (clang-902.0.39.2), 64-bit
> 
> Apparently the segfault happens within the check for the possibility of HOT Updates with expression / functional indexes which was added by c203d6cf8 in 11.

Yeah, this code was disabled yesterday :-(  Updating to current tip of
either branch should "fix" it.

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




view thread (2+ messages)

Message-ID: <20181107144957.rxhrkbiribnh7yvg@alvherre.pgsql>
Permalink:  ../20181107144957.rxhrkbiribnh7yvg@alvherre.pgsql/
Also on:    postgresql.org/message-id/20181107144957.rxhrkbiribnh7yvg@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-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, t.bussmann@gmx.net, juerg.senn@scnat.ch
  Subject: Re: segfault with expression index, btree_gist and HOT Update
  In-Reply-To: <20181107144957.rxhrkbiribnh7yvg@alvherre.pgsql>
  References: <77EC85F8-B515-4CD3-B68E-26D82CF48D58@gmx.net> <20181107144957.rxhrkbiribnh7yvg@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