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.92) (envelope-from ) id 1jCodD-0006yg-G7 for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2020 18:01:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCodB-0001Fn-V9 for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2020 18:01:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jCodB-0001Ff-Ca for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2020 18:01:57 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCod8-0003Ck-A1 for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2020 18:01:56 +0000 Received: by mail-wr1-x441.google.com with SMTP id x11so8511301wrv.5 for ; Fri, 13 Mar 2020 11:01:54 -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:references:mime-version :content-disposition:in-reply-to; bh=bO2U5mlMsN/Bz2qPCAqo87kEEyM2EKn3QuoTnc1DUSg=; b=gQ6nKQLW0D/EFkInXUkXPdl8OIbDUeNWyl6hbzh+noK6V32UNrzY/TmdhuBmxZWt+0 GrslmaUeo7/ppeLixJNcnXyH1wpYkHFNvw02kXWSKei+K1IiEOza8yM+NJFVOB7lOrHN 5x3Yw6ffkXKjhlriJra0Mx681hnQeK5u27gZmWimLjj0ATguqXfv84INXOX8TDaJ9CO5 Zeos3IrCL72Ic7haa3O835IDsE9fSx/jvg6Jt0PHR1aTR+F7xb5uDxMOL96ISawnkUAc NZjVWSYoWx7WwKYCkjJvJ/UEmlI97HCFwN1FeLKBPJXz0p6NfNoULbL4emJpg5K22pxi Fhew== 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:references :mime-version:content-disposition:in-reply-to; bh=bO2U5mlMsN/Bz2qPCAqo87kEEyM2EKn3QuoTnc1DUSg=; b=PQiHRG/hqopTiDEBWgkUY0ZmAb1kTLFrbFTe5/0jwHeU09Z++66rQe7F7caWdX5F44 /xTbfblRpLkGDqiBKdn53zbbqNm4Ef6EAZt7FZj/AtFuc4Tm9GSEQuwkLb/bw11TrG07 Tfaik7H9XjBWHh85tgEOcpX8fLDclVNVMoLuUBmDwUufmCgTr1j0GmNmq1xrh/1YEH4O L0JVhodytAHpaZ+na6rYb2AJj/L6HXA17j3N76rzj8rWDaXxkaxkKhkxJb7Cetac4zlR 7PswFyWeM4mfZIl7MV8wH05z8ucnOMXJ2KtG2jKvpeeC4BsARt0/h6Mu3bTS9RznZvjw xsSw== X-Gm-Message-State: ANhLgQ2+9TGqbJtBkCcFAQoy9sCRsuKRkaJXcTOd1rdLCOylfIbKbSvt Wz/xtAY3vdBu8sIslFUjlkWQ/Q== X-Google-Smtp-Source: ADFU+vsFK+cja6NTVWAnZSwMTkqJ//ysNs1PFLGIV4b1Y3LSM2Cc4F11qUtkPobIarlH8Y21rvhocw== X-Received: by 2002:a5d:45ce:: with SMTP id b14mr10476202wrs.294.1584122512834; Fri, 13 Mar 2020 11:01:52 -0700 (PDT) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id s7sm14247322wro.10.2020.03.13.11.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 11:01:51 -0700 (PDT) Date: Fri, 13 Mar 2020 19:01:50 +0100 From: Tomas Vondra To: James Coleman Cc: Michael Paquier , Rafia Sabih , Peter Geoghegan , Simon Riggs , Shaun Thomas , Dmitry Dolgov <9erthalion6@gmail.com>, Alexander Korotkov , Tom Lane , PostgreSQL Developers , Alvaro Herrera Subject: Re: [PATCH] Incremental sort (was: PoC: Partial sort) Message-ID: <20200313180150.fud6yy3pji25hid7@development> References: <20190928230049.k4l2mayun7jomhxy@development> <20191129060146.GH2505@paquier.xyz> <20191201004716.cenkc33em2lnrrdl@development> <20200121142529.wpickvfefp7lok4p@development> <20200311024355.5h2v56jpgzvd7yox@development> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Mar 13, 2020 at 01:16:44PM -0400, James Coleman wrote: >On Tue, Mar 10, 2020 at 10:44 PM Tomas Vondra > wrote: >... >> Now, a couple comments about parts 0001 - 0003 of the patch ... >> >> 1) I see a bunch of failures in the regression test, due to minor >> differences in the explain output. All the differences are about minor >> changes in memory usage, like this: >> >> - "Sort Space Used": 30, + >> + "Sort Space Used": 29, + >> >> I'm not sure if it happens on my machine only, but maybe the test is not >> entirely stable. > >make check passes on multiple machines for me; what arch/distro are you using? > Nothing exotic - Fedora on x64. My guess is that things like enabling asserts will make a difference too, because then we track additional stuff for allocated chunks etc. So I agree with Tom trying to keep this stable is a lost cause, essentially. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services