Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hgyqs-0002uc-QS for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Jun 2019 21:56:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hgyqr-0007cG-Kj for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Jun 2019 21:56:13 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hgyqr-0007a0-BA for pgsql-bugs@lists.postgresql.org; Fri, 28 Jun 2019 21:56:13 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hgyqo-0005e3-Cf for pgsql-bugs@lists.postgresql.org; Fri, 28 Jun 2019 21:56:12 +0000 Received: by mail-qt1-x842.google.com with SMTP id h24so5008378qto.0 for ; Fri, 28 Jun 2019 14:56:10 -0700 (PDT) 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=Vwmm3GUYziAgnccUg+ZbUt4FMjdvIbbYQ1kVFJyh8FM=; b=r8FmxKDQ0cmMWpZ4t2iAGLHvd8EdhZOfqUre3R+PF+4gT+nTPCIWVPibDplPYnd55K 7mlUMvGa4ww8uHd+NZMCKSx9vpgekFFDrSNQoc/ybAqrzBok8D6mbxyT43ieZt358wHT Bxxd0M8c0fTWpgEWd5e2i7Xg/bdYX7/09QJ4xik30W3uSkN1qWQv8koG9Xww7ddiC5ZI YxncKBrCScejwe1HIMrKxhCUVj3j4UzC8S4kNsvA/xZw182T6Is0+gNG4H/EIt7nMPXA 7V055ubknbL3efNPmWUWtNxEieqRODABR0ErOnktOreKr5n2hRMbQU93CIcWe3wbuoTm O4jA== 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=Vwmm3GUYziAgnccUg+ZbUt4FMjdvIbbYQ1kVFJyh8FM=; b=BVY3RI7RTUfxgqWuHuNfr7EXqSmICfqfwa+PP01oO50/m3un5oAgbEyNfZlo29tOnx VeRnciFtUDU6IXblw84x+qQsJf0VZFmhkQ2Z/BwU6EYF9o2Mab0Ftr0cQ3fMKlmZdTBJ N4LXlg0ycjz2RiSFIvBCMsp0wM04WVLVb7aMQmHxmHf/GH9yCR0YZIHOAXWEb05ZGNq6 hfz1/GrtjPWlxTFEG9Z2xe6h9OqB4MGUBPtpmyoCzn3NHbE6GrURpGd9zMoyWUox4p0f zs/lHq+S8fc0v5KrArHtF1r50u3EC8m5EdfBa733dLtqXPoNtA4EbW7bSVJC7q5DJ5MY 1XNA== X-Gm-Message-State: APjAAAUT3zVeAD/axq1wAV5GiPfuzee/Sw1UpGIrJ0rC7Il/fqdXtzwU hzuic8WNu49ySGa3uj/b0g7D6Q== X-Google-Smtp-Source: APXvYqyj4fi20EHJrqRDi/tZ8l2E+NsOmd+3B1IxoVqAt4a5b4aqQfglPLJW+Rk0zNTTfxgP+g5hew== X-Received: by 2002:a0c:e751:: with SMTP id g17mr10271801qvn.197.1561758967784; Fri, 28 Jun 2019 14:56:07 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id j66sm1669837qkf.86.2019.06.28.14.56.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 28 Jun 2019 14:56:07 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 0087F12037F; Fri, 28 Jun 2019 17:56:03 -0400 (-04) Date: Fri, 28 Jun 2019 17:56:03 -0400 From: Alvaro Herrera To: Amit Langote Cc: infernorb@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form Subject: Re: BUG #15677: Crash while deleting from partitioned table Message-ID: <20190628215603.GA12247@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3ad5ba71-d200-96da-f903-7e3b16416140@lab.ntt.co.jp> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2019-Mar-11, Amit Langote wrote: > To reproduce, use these steps (needs 2 sessions to invoke EvalPlanQual at > all): > > Setup: > > create table p (a int) partition by list (a); > create table p1 partition of p for values in (1); > insert into p values (1); > > Session 1: > > begin; > update p set a = a; > > Session 2: > > with u as (update p set a = a returning p.*) update p set a = u.a from u; > Hmmm ... I rewrote to this isolationtester spec and doesn't reproduce a problem in master. I am probably missing something ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="partition-eval-plan-qual.spec" setup { create table p (a int) partition by list (a); create table p1 partition of p for values in (1); insert into p values (1); } session "s1" setup { begin; } step "s1_update" { update p set a = a; } step "s1_commit" { commit; } session "s2" step "s2_update" { with u as (update p set a = a returning p.*) update p set a = u.a from u; } permutation "s1_update" "s2_update" "s1_commit" --a8Wt8u1KmwUX3Y2C--