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 1lMurz-00009W-CD for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Mar 2021 15:47:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMurx-0002GC-S8 for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Mar 2021 15:47:29 +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 <9erthalion6@gmail.com>) id 1lMurx-0002G5-LS for pgsql-hackers@lists.postgresql.org; Thu, 18 Mar 2021 15:47:29 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <9erthalion6@gmail.com>) id 1lMurv-0000Jp-SH for pgsql-hackers@postgresql.org; Thu, 18 Mar 2021 15:47:28 +0000 Received: by mail-ej1-x632.google.com with SMTP id ce10so4699747ejb.6 for ; Thu, 18 Mar 2021 08:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=zUIpXnQwVYA3Do1U2xXg8AOENZJZ4UPmOx0aXrYEa6M=; b=XQbsTXHiVHgvYzTibGXQ4kqpGKze5I94oj+pHD3CLwRz1U4EZQ4D5iCI4M58bDmRCS pe6/mAbFbyuWYdPmxYrXK8u5yDkV+lHDJRNrY9o3DDvKGULNGTCWgU/0saDMhtlkhBuH 5bo30FugJfv/G1VP8Q+FkQKASbxucRQx6bTSCvACpW6Wvj+QsJbMMmsMwtSRrSfa5gg3 3DoTM9+F8zRFsl1oG2/VAQ+rJuGd2ur+GtGJdyPKEwUmkTK1ipwt1RrWbCD9oajpnq+V kuu2ym+oD1gT2xERGcHbn6a7RYU8Kkvh37ecbA8SVIi0VW73T2i2brfzAVhgrWd7uBd9 IDYw== 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:content-transfer-encoding :in-reply-to; bh=zUIpXnQwVYA3Do1U2xXg8AOENZJZ4UPmOx0aXrYEa6M=; b=YaQLVI2en38kPcx3T9zwxcvLJh9N6MLBwTSil/CVKxueIJPmFAgVdgOB0A5cBr5S0G asTW4Oh75Pd4JT9pP6/nR7QfFIQpJs6IKrU7aGxrJj0m0muULa1EALt5VUy1mwCebIMd paydk350to2Tt5OYFfOZyh2pOWP4WjQkLBrnbhM/+4HCtrHbuOxDaMchHfGYpjMfD5UM HtJadsCzqYE2TMLDWXwIx+7Pc/mTvk4p0jSpI0MBwPXaeoh1/0jZemkul96EGf7UrApG acNwqZMPwKhpKLvSRSFdaTURxT7DjzSFG3OybPNZg477b+gYP98pZodCs27ZAgXA67lT FUfA== X-Gm-Message-State: AOAM531vdFXWMpI6L2ZVchUg8uubLywjNfOqQSGrOezeI22uz9uivvNg niNnQnlNEiZLK6+JpAmxsSc= X-Google-Smtp-Source: ABdhPJyFbxWu/RBbEN3xAsYmIy56FD6r/CTtGz69N+gAhLZvgMh+7eLZG1510D3gD+7Wm2aibd4/vQ== X-Received: by 2002:a17:906:9714:: with SMTP id k20mr41336073ejx.519.1616082446632; Thu, 18 Mar 2021 08:47:26 -0700 (PDT) Received: from localhost (dslb-094-222-016-066.094.222.pools.vodafone-ip.de. [94.222.16.66]) by smtp.gmail.com with ESMTPSA id q26sm2150151eja.45.2021.03.18.08.47.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Mar 2021 08:47:26 -0700 (PDT) Date: Thu, 18 Mar 2021 16:50:02 +0100 From: Dmitry Dolgov <9erthalion6@gmail.com> To: David Steele Cc: Zhihong Yu , PostgreSQL-development , Tom Lane , Greg Stark , Pavel Trukhanov Subject: Re: pg_stat_statements and "IN" conditions Message-ID: <20210318155002.ggrgf2p2mvaodcox@localhost> References: <20201118160432.hyko73sqc2bf7nkj@localhost> <20201226104635.uvzkftzu72zg5qux@localhost> <20210105125230.etgmgixnn6fmpszl@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Thu, Mar 18, 2021 at 09:38:09AM -0400, David Steele wrote: > On 1/5/21 10:51 AM, Zhihong Yu wrote: > > > > +   int         lastExprLenght = 0; > > > > Did you mean to name the variable lastExprLenghth ? > > > > w.r.t. extracting to helper method, the second and third > > if (currentExprIdx == pgss_merge_threshold - 1) blocks are similar. > > It is up to you whether to create the helper method. > > I am fine with the current formation. > > Dmitry, thoughts on this review? Oh, right. lastExprLenghth is obviously a typo, and as we agreed that the helper is not strictly necessary I wanted to wait a bit hoping for more feedback and eventually to post an accumulated patch. Doesn't make sense to post another version only to fix one typo :)