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 1gtg6T-0003CO-Hz for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Feb 2019 22:00:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gtg6S-00033c-7D for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Feb 2019 22:00:32 +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 1gtg6R-00033R-Vd for pgsql-hackers@lists.postgresql.org; Tue, 12 Feb 2019 22:00:32 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtg6P-00077e-0q for pgsql-hackers@postgresql.org; Tue, 12 Feb 2019 22:00:31 +0000 Received: by mail-qt1-x843.google.com with SMTP id v10so297320qtp.8 for ; Tue, 12 Feb 2019 14:00:28 -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=H2TCPOXDuxCR1vhdqclt0LOtJTQbSgGFZkTu/G0p1q4=; b=dmTEzeR+xyExnvvO11FETNaSbhuF/XfRylXNkWh5bOipLQCYjdbyOHxvGruZgG/hNX nl/Uor+Ho5pjFUBptAYcAuPqai9yoCMd05nRVXNWch/iS0dNFzu1mtbouv2OtLar0pKx RwipD06fd+kAZkkDzV5+DNkkwjqYwlex4z5xT9j2dww/1XD07CWQZNiIVMlLI34zjpmP JiVHXI7gQLgbzkuBaDIIBpd/vRxdjbZVJ8im6jVuLpEYDb5m0cjA5GvybC3h78BoZg2a lfpZ236Gyp8fw56JnVETxdegdQdP47SPPdkh4Tro/HzrkHxrycDpnD/PWofUYgavBJ0C 1O3Q== 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=H2TCPOXDuxCR1vhdqclt0LOtJTQbSgGFZkTu/G0p1q4=; b=WhOn36vfwvWrcYUmkLYzbHd/XOGg/Y76P9GFbdSscApGeTO+9+UViglCq9hrW9xtw1 pFCWDTs81ZLpxAFEqF/ol3zFymJhsFisyHBVl4fWeWBGkM4LPDzml8GuBTG/zLozczX9 UdqCHc8UWIg7AVMxO2OKbnmuLEQNYbgWvECVWf1ueUfN/nLq/wKykC0VaWYEgT4hPH5B nZznE7MxAeD+l6A3I9bCRYbt4dRK/978lIeiKahHxDGmLAgg3H35TW2fpAX/LpsaEkKO 6I52qN9JeRAQ1TIgN90tduxP76xewArYrgJMbD7bBEZHymZ0UWcY8chmpbN8uaw5Sinv bNrQ== X-Gm-Message-State: AHQUAuYxQxUIOEwCiv7kR5ULLoPOOaLNxcdfBBkJQEImXex22ZTvjSrc f9iZf2TDgIvU18AlhHt/SUwH/rVHFpm7+A== X-Google-Smtp-Source: AHgI3IYBiV3i/6FmKc6uOqAnovwctXx+1srKwlOYEtzvIZaEQd+nzUcr444jNyW1+cHUCIjudjltBw== X-Received: by 2002:a0c:c103:: with SMTP id f3mr4462217qvh.194.1550008825879; Tue, 12 Feb 2019 14:00:25 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id s72sm2680033qka.10.2019.02.12.14.00.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Feb 2019 14:00:25 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 91E78124673; Tue, 12 Feb 2019 19:00:22 -0300 (-03) Date: Tue, 12 Feb 2019 19:00:22 -0300 From: Alvaro Herrera To: Arseny Sher Cc: pgsql-hackers , Alexander Lakhin Subject: Re: Too rigorous assert in reorderbuffer.c Message-ID: <20190212220022.GA16807@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87tvh9xa0g.fsf@ars-thinkpad> 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-12, Arseny Sher wrote: > > Alvaro Herrera writes: > > >> 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? > > Yes, it works. I thought for a moment that some obscure cases where cmax > on a single tuple is not strictly monotonic might exist, but looks like > they don't. So your change is ok for me, reshaping assert is better than > removing. make check is also good on all supported branches. Thanks for checking! I also run it on all branches, everything passes. Pushed now. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services