Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKP9j-0005Fl-Tz for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Nov 2018 14:50:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKP9i-0001f3-9C for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Nov 2018 14:50:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKP9i-0001et-2E for pgsql-bugs@lists.postgresql.org; Wed, 07 Nov 2018 14:50:06 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gKP9f-0008WS-Ax for pgsql-bugs@lists.postgresql.org; Wed, 07 Nov 2018 14:50:05 +0000 Received: by mail-qk1-x743.google.com with SMTP id q1so21120346qkf.13 for ; Wed, 07 Nov 2018 06:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Tduyv81H8qsZ/3TrVe487ONaBw0qdEbZpndaImqLmKg=; b=WWkzC20UJLkh3ddO+KTm6gpiDimmvQLcifv/yJUu4uFaajh7c8cartWi9/kN2Bk1Bx 0YRqOUp88MVBcyD7irvG/RwSOgRVHr1pB0NW2Y243a+F6EgkHw+mg6YORTVr4lYR0h9e pFw8BosQe3K7X3lKTiD65Pbn87YgA5529D5sURBCN1TsKk2iz5K84Kk575u/AaLw1lWG J2KGRai27tF0GFyfl+A/jBeQ69T0UO5P9f0451XUy8pavBKOTMkqviWHdeoh/g4+uo/p fyGNFNaYQqRdd1JXP3KQyNRbECiVxfm3AkeCTHok9LbmQZNdspxJJM/A5uNupTpDHCoq SwvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Tduyv81H8qsZ/3TrVe487ONaBw0qdEbZpndaImqLmKg=; b=ACjRlZbQK27jF4I9jT8EGgKLvnZq124hjSHOq6j2dGUkO+WZBZS9Hd0kk4Jmbnenrj emi4zJKzi7+4iKn4aIW3zmk5SrB9lE1Lb0p089u4F0iuBbn1FrDhEozSGiUqoYdRqUG0 3SnR14PtkjugCI1wtuoM63mzl1cneQdtxrFVq3LwNPBNCKtQG7W0RhU6Hlda7/r5eMP/ BOt6MrlSUZc957dSwb64OqRWXbZGESvefWZ+GATlUIOZg5S6/qmt64fXbBsTPSPlPjHk ZGesU2KcrM96on4oYmxZl+spXv+XK+W1HGiBxpPoW/9O1AzXvT2chn1QnQMX9tBSvjBN DQoQ== X-Gm-Message-State: AGRZ1gIR2b5I6dZxf1yilNNbwL7OZVc/lGCcLIRe10W0hbyPEQqOAdpj BG4460dE4n0w8YyROZWmdw326g== X-Google-Smtp-Source: AJdET5dKQMmWMVRKSt763pwCTgSBPU1FSrvzkdwYgAm9IJwe5QJA4El9wGQQbvrcHj1bilpS7YWrdw== X-Received: by 2002:a37:73c4:: with SMTP id o187mr491497qkc.157.1541602201565; Wed, 07 Nov 2018 06:50:01 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id u27-v6sm470479qth.39.2018.11.07.06.50.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Nov 2018 06:50:00 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id DA47A5BE; Wed, 7 Nov 2018 11:49:57 -0300 (-03) Date: Wed, 7 Nov 2018 11:49:57 -0300 From: Alvaro Herrera To: Tobias Bussmann Cc: pgsql-bugs@lists.postgresql.org, =?utf-8?B?SsO8cmc=?= Senn Subject: Re: segfault with expression index, btree_gist and HOT Update Message-ID: <20181107144957.rxhrkbiribnh7yvg@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <77EC85F8-B515-4CD3-B68E-26D82CF48D58@gmx.net> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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