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 1ncM9C-0000zn-Tn for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Apr 2022 07:01:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ncM9B-0006wA-R2 for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Apr 2022 07:01:37 +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 1ncM9B-0006w0-Fo for pgsql-hackers@lists.postgresql.org; Thu, 07 Apr 2022 07:01:37 +0000 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ncM95-0003ye-Gf for pgsql-hackers@lists.postgresql.org; Thu, 07 Apr 2022 07:01:36 +0000 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-de48295467so5450593fac.2 for ; Thu, 07 Apr 2022 00:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MSSG3j3lK+ebr2gx+YYn6Ra5p8QPgV477ivYYzTqm1U=; b=jbmNEOcOkUtYVcDAe1DI85e9yVWzLJXrFoFQUftvK6lwczaMz/aSG9+3SfMyDMdTn6 L5PSIUG6CJgnlAa5O2gDTZ4GITcWgYlEhJRpXx4Ftun/hRzBLdkmaU8yGeknq8MSYTV/ y+iYq35rfkE2dHSdNBVvjigWCiX1eoERJ3xxbhrq0wSlIH2Q7xWC8lmiObMvwQ7qkhmZ D0lhPQBimvvVIxtBns/c8CvTe6EAqiqMkeyHQb9Od+bt6TZnIhavTjmNKDiSjMD8nMZk aUaT9Jw5uSZzB5ZQL1hFGl/leCXsGLtkqZkAM6oIgWQxin4aS4L5a2emukjOLN23FZtv UacA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MSSG3j3lK+ebr2gx+YYn6Ra5p8QPgV477ivYYzTqm1U=; b=L4yew6Is+Kd3g6uuqZF3yt2VOQY2GY2/xSBcxFv4T3G/haEleOSNabK/xpjxI6qIWK FlqQ8dJ60P14cAg8pf+z0yru30kW1lAls/GO4Rv1niQUqROfcgUachdVuGuAG16PGrnM ooUQNMRf5658cBkmgGnwQ6rYt2VzTauj5fWoqe1rG667GJ2pBgNvyW+btvTSg7vcLsww zQ9CCvk3yWaRgMGIfQfXvSmLKXYQOBnCViAGOO1XTTaWNeBSMB+PQFXnzhuqGq9vpVeg vzrPL2TI1FxTPYsOW4YCrK33SAEar8rNHBgFCvKwTSNZWkwAjI0eH0DY6QoPRkrJ+dvh zybw== X-Gm-Message-State: AOAM533laiS+QTwLTfi6x9CXojKzWVuMtgc7eYU3n3zqQr8bAHguAGhi Xgk5EQ353E7B92Ws3cEReCavADylzkEAjelSFhI= X-Google-Smtp-Source: ABdhPJxroruWnspeKdKtguvflF2W5DYshxYRX2yPAs+UU8FEsHJTVyeKEfgbLEOWkEI2OBGYBnFwMF/O55P1hJPt8sY= X-Received: by 2002:a05:6870:d28d:b0:da:b3f:3234 with SMTP id d13-20020a056870d28d00b000da0b3f3234mr5585722oae.228.1649314889358; Thu, 07 Apr 2022 00:01:29 -0700 (PDT) MIME-Version: 1.0 References: <20220329221615.hule724qcaarhe3y@alap3.anarazel.de> In-Reply-To: From: David Rowley Date: Thu, 7 Apr 2022 19:01:13 +1200 Message-ID: Subject: Re: Window Function "Run Conditions" To: Zhihong Yu Cc: Andy Fan , Andres Freund , PostgreSQL Developers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 7 Apr 2022 at 15:41, Zhihong Yu wrote: > + * We must keep the original qual in place if there is a > + * PARTITION BY clause as the top-level WindowAgg remains in > + * pass-through mode and does nothing to filter out unwanted > + * tuples. > + */ > + *keep_original = false; > > The comment talks about keeping original qual but the assignment uses the value false. > Maybe the comment can be rephrased so that it matches the assignment. Thanks. I've just removed that comment locally now. You're right, it was out of date. David