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 1gtYVV-0003la-Ha for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Feb 2019 13:53:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gtYVT-0005Ua-5Q for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Feb 2019 13:53:51 +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 1gtYVS-0005US-OR for pgsql-hackers@lists.postgresql.org; Tue, 12 Feb 2019 13:53:50 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtYVP-00044K-Qi for pgsql-hackers@postgresql.org; Tue, 12 Feb 2019 13:53:50 +0000 Received: by mail-qk1-x741.google.com with SMTP id f196so8201715qke.10 for ; Tue, 12 Feb 2019 05:53:47 -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=R/5L4sfei93yi/lOrO8BPp1I9IQPEuzms7tc9BYY3X8=; b=PVNYWmqBVc26PXC92viBcwP/VKKimNg+lgBLQ+uTmWtUeO9atJmV0B1sPE26e1k1oD 5xYC8jD/xlN6O8NlgMxqOSSt3ubiyK86Jh23Xl1SFqJGYkteZfHdxPlkQaZoMM1CrlKN PGpaHtHE8FDBUq74/nYnUyfbTsj1q2hIiq/mORoogP/KDWeAOPxoZLMgBJ9Y9e2TxDvB lbIC3ufkASCdzTp2U79dqWtCT7+d7yy9+/jomNqeFiTXUVcCdjpGHlIv608iaGhKyqxz FhfXU/bTtUG2pcsVLogDVNlhyyEnA7yjeMsgD/NI9ANLzuDzjJmqgsGDzyy8xsOEaygy DN3w== 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=R/5L4sfei93yi/lOrO8BPp1I9IQPEuzms7tc9BYY3X8=; b=cjn326GrQ0tkFq0ZCCxPVprPJhuvDXHTZKQvCYg+YTh1/TmeyGua6sBNdNqD5EKXJW dN9cu12FbiQO0/UT8u9v4t4nNMyqKruVeDclHiroXjKARwYjK90lKfirt1LShB4RF548 dvuJvrR11gXd6vQ0gryGndMVWOICbKUdrQRbBWMlSakTuez8yks9ZdcLTngLcVEwITxf tGlzbBXy2xg9Krx2RRbrnV6Jsik8dFWVRc4XGKMB7ZXuqhDi+EHWINU1p5x8Vy81ulMR PDhJr0d+KBB9wUdOeWtbWVL4kqgnBoJEvIiK2HUwfmGwMPFnZOFNvlb4WtRp0Lp+Grkp HoGg== X-Gm-Message-State: AHQUAuZYS0FqdmomVNVFEc+ECGTj/gHnZ9k5dJeIEHOF2r453u2Gqph6 sZygtc6ueS2kf/+8LX/Bi549Mvy4F0rV2g== X-Google-Smtp-Source: AHgI3IZoFKRjgPTX8f8Rlrh6H4JZ8znjQwieGgGnML5Ixo6p95LR6yJc/KLMULTax+DzEje7gjMG4A== X-Received: by 2002:a37:c348:: with SMTP id a69mr2541152qkj.177.1549979625936; Tue, 12 Feb 2019 05:53:45 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([201.186.19.206]) by smtp.gmail.com with ESMTPSA id s13sm22294119qkl.71.2019.02.12.05.53.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Feb 2019 05:53:45 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 90FDF12469C; Tue, 12 Feb 2019 10:53:43 -0300 (-03) Date: Tue, 12 Feb 2019 10:53:43 -0300 From: Alvaro Herrera To: Arseny Sher Cc: pgsql-hackers , Alexander Lakhin Subject: Re: Too rigorous assert in reorderbuffer.c Message-ID: <20190212135343.GA29518@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190211185003.GA27084@alvherre.pgsql> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Feb-11, Alvaro Herrera wrote: > On 2019-Feb-07, Arseny Sher wrote: > > > Alvaro Herrera writes: > > > > Ah, okay. Does the test still fail when run without the code fix? > > > > Yes. The problem here is overriding cmax of catalog (pg_attribute in the > > test) tuples, so it fails without any data at all. > > Makes sense. > > I thought the blanket removal of the assert() was excessive, and we can > relax it instead; what do you think of the attached? More precisely, my question was: with this change, does the code still work correctly in your non-toy case? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services