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 1m3Txy-0007eI-Ky for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jul 2021 01:45: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 1m3Txx-0002kE-K3 for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jul 2021 01:45: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 1m3Txx-0002k6-AN for pgsql-hackers@lists.postgresql.org; Wed, 14 Jul 2021 01:45:37 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m3Txv-0008Ci-7e for pgsql-hackers@lists.postgresql.org; Wed, 14 Jul 2021 01:45:36 +0000 Received: by mail-pj1-x102f.google.com with SMTP id h1-20020a17090a3d01b0290172d33bb8bcso2649768pjc.0 for ; Tue, 13 Jul 2021 18:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I9G9FSlbaqXdg7+LwsWTB3oTs7VuOQDVN1+K0sL71aQ=; b=JAUh6lHc6zAqQDBQdesH2EtyAs75f7RJfJKTbMrF1adEz/SesT6fYLi69dFbplNSda EqA//wsHjXS0KrlVeXim2Hwxm/x2lrFKpZkQh5yCfrrb+7be9TucDDR7W8IGajiJE6M8 I8lvHEQxWQ5fLuYocBgC+raW9RTxYFiY2moP7YwgrGllYHNFwA2aNxZIDkuQWYI4Rc5l jaJF8QF09cv7Z6t+vLjavD1yQX2LsIos6EEqS06HPEgbujxXQUVYNz7e0UMlwGkLyGn4 FaP5rE69X/MfY9cmIAuiKVF97uwO0gnZt16c/V88fz59AtwmgM5tf9D6fody1ugTqz1k Lb0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I9G9FSlbaqXdg7+LwsWTB3oTs7VuOQDVN1+K0sL71aQ=; b=iuBJ9DgXtBZAXrzVdtCH7fSr2KZh8ovRhzxyRG/Hz1KlG8wK33oxUw+tyEHP1pWu90 Z/NRiCDpCDqqcOBvyqDvxP6Nw43IJu814E7EGLoaP4lbSyWxNRN3+LSXHW+mGNyCnno2 sGBydCilkcBt+U52PFzL/l55Sm6EwAWNQ+Y0rjH7Zmdd1nDPwtPfwGNlvNSG1gmwq8qH +5BKYomHU/UfCXjTiUTZ+wN2aoOHTa3I8whnszHBOWL3dnl+41+rXyCdP2qYN/tUqQGC aMj6FV7T/i383fRrh/LJHAymF2lGyjmS23xa4n24OW2NxLCAEGcmCYw9QB7hdQaqwSAI ojBw== X-Gm-Message-State: AOAM530RJSzmd3y/udXgts1mDI80IMmePM+1qrTQdOIsPAAtP4vEtAVi Th/Knb4LkzJYq9Y3XxvKhkTMTHFRdICiMePxkk0= X-Google-Smtp-Source: ABdhPJzi1lphCEFbkonmDVevA7k28ldjsgJq5g20dOjw8bEcC0fVjeu/uTIoz6carlo6Pm7W55ICOMKYAEgTaePwFIA= X-Received: by 2002:a17:90a:474f:: with SMTP id y15mr7319515pjg.2.1626227133925; Tue, 13 Jul 2021 18:45:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ranier Vilela Date: Tue, 13 Jul 2021 22:45:22 -0300 Message-ID: Subject: Re: Add proper planner support for ORDER BY / DISTINCT aggregates To: David Rowley Cc: PostgreSQL Developers Content-Type: multipart/alternative; boundary="000000000000a44c2a05c70b82cd" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a44c2a05c70b82cd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Em ter., 13 de jul. de 2021 =C3=A0s 22:15, David Rowley escreveu: > On Tue, 13 Jul 2021 at 23:45, Ranier Vilela wrote: > > The question not answered is if *argno* can '>=3D' that > pertrans->numTransInputs, > > before entering the loop? > > If *can*, the loop might be useless in that case. > > > >> > >> > >> Note that we're doing argno++ inside the loop. > > > > Another question is, if *argno* can '>' that pertrans->numTransInputs, > > before the loop, the test will fail? > > if (argno =3D=3D pertrans->numTransInputs) > > argno is *always* 0 before the loop starts. > Good. Thanks. regards, Ranier Vilela --000000000000a44c2a05c70b82cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Em ter., 13 de jul. de 2021 =C3=A0s 22:15, David Rowley <dgrowleyml@gmail.com> escreveu:
=
On Tue, 13 Jul 2021= at 23:45, Ranier Vilela <ranier.vf@gmail.com> wrote:
> The question not answered is if *argno* can '>=3D' that per= trans->numTransInputs,
> before entering the loop?
> If *can*, the loop might be useless in that case.
>
>>
>>
>> Note that we're doing argno++ inside the loop.
>
> Another question is, if *argno* can '>' that pertrans->n= umTransInputs,
> before the loop, the test will fail?
> if (argno =3D=3D pertrans->numTransInputs)

argno is *always* 0 before the loop starts.
Good. Than= ks.

regards,
Ranier Vilela
--000000000000a44c2a05c70b82cd--