Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lksB8-0002FB-BN for pgsql-hackers@arkaria.postgresql.org; Sun, 23 May 2021 17:46:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lksB6-0004Tp-8d for pgsql-hackers@arkaria.postgresql.org; Sun, 23 May 2021 17:46:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lksB5-0004Th-Tn for pgsql-hackers@lists.postgresql.org; Sun, 23 May 2021 17:46:16 +0000 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lksB2-0002wT-Ci for pgsql-hackers@lists.postgresql.org; Sun, 23 May 2021 17:46:14 +0000 Received: by mail-oi1-x22f.google.com with SMTP id s19so24983351oic.7 for ; Sun, 23 May 2021 10:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=JKRqiRrB2Opth+ok1hRh9CLfnEMCx2wvzw4mMrivZ/Y=; b=SQansInBCCxpi4kBaJVjurc2Z+9agcjZvcrGqyjWYEA1Ykso83M/ClehgEBhmcJdyU OIAjjY6HHaHV9aeC9i/dxpNruLcV/P62oYKDbI/KmVrPdM71MMFq2Pmo0W03wrQgdlXr rxgrj4Tr0610Lf+Z5djfCmr6Na5xC7BtQQJGc4Gb9w7IKMCL+902mDwB8lS2iMLkdlKW Al9TifUIoIk9ug6qHo9cNMHiYyQxqyTO8Ta9N0cZrbTK7ZhOKvrUUjaXFYV6jlvvdPAl Iv5rce34e5+IqPbPv7GH3D1dp0GWkiSH+nrMZ99c4pQ4dOIgSTQ0m9vhRC+lBLTUvLu4 i0aw== 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:user-agent; bh=JKRqiRrB2Opth+ok1hRh9CLfnEMCx2wvzw4mMrivZ/Y=; b=EZPtaEsJUqblbSEHhS81OzaRDn3/7Hai1qHSvm6IRk5e3KzQlEf/GpcVCiBAacznnO GZBBAkSjFVLEntdL0HUkfrep+N2gHYFl2kS6W4I7wbWlab+sW+TgDnN3QpjgNT5ipaQa bakNO4XH12qUVfmtRtXvsa4ZsOz68fWbxJii1nihltnPzzeiMuBAo8Cja6hKdKQtDr/J HG7qstFtTv+7ZOllKp2OjlruZyNZq8QLsIanP2OcFVzaUpiCnXsFpIgx+nvKZasK/eJy ePtDzE/TP+QE3kN8O6RE+ty8rlZlBdv9cUAzuSDxmYLrnuG87378zuGqdaXW/pjMRovW gBpg== X-Gm-Message-State: AOAM533Z2La+IEkRVW1d3hQu3Di8tZtJHCbOuJe3p7WZc0CCDhnJDLnr nk6vzeHAddXDF1deqYI8v9JGBg== X-Google-Smtp-Source: ABdhPJxSdMjaShLV0yT9HmJGrbQXugJuarn6fuNaSmf1U2H8oasSSXJB/q6ZAUxTMOxOxSzPvMguMQ== X-Received: by 2002:a05:6808:10d6:: with SMTP id s22mr8603934ois.96.1621791970542; Sun, 23 May 2021 10:46:10 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id k16sm2554217otp.19.2021.05.23.10.46.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 May 2021 10:46:10 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id D492380076C; Sun, 23 May 2021 12:46:08 -0500 (CDT) Date: Sun, 23 May 2021 12:46:08 -0500 From: Justin Pryzby To: Nitin Jadhav Cc: Robert Haas , Zhihong Yu , pgsql-hackers@lists.postgresql.org Subject: Re: Removed extra memory allocations from create_list_bounds Message-ID: <20210523174608.GL3676@telsasoft.com> References: <20210516170029.GB373@telsasoft.com> <20210517150310.GG373@telsasoft.com> <20210519191658.GA3496@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, May 23, 2021 at 10:40:16PM +0530, Nitin Jadhav wrote: > I have used the same testing procedure as explained in the previous mail. > Please find the timing information of the last 10 creation of partitioned > tables as given below. > Without patch With 0001 and 0002 With all patch ... > 18.5464 17.8655 17.5069 For anyone reading non-HTML email, the last line shows the averages of the previous 10 lines. >> LIST and RANGE might need to be checked separately.. You checked LIST but not HASH (patches 3-4) or RANGE (patch 4-5), right? Another test is to show the time/memory used by SELECT. That's far more important than DDL, but I think the same results would apply here, so I think it's not needed to test each of LIST/RANGE/HASH, nor to test every combination of patches. Mostly it's nice to see if the memory use is more visibly different, or if there's an impressive improvement for this case. Note that for the MAXRSS test, you must a different postgres backend process for each of the tests (or else each test would never show a lower number than the previous test). Thanks, -- Justin