Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qpj1c-006im5-IF for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Oct 2023 05:41:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qpj1a-00AtnW-4O for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Oct 2023 05:41:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qpj1Z-00Atmb-QV for pgsql-hackers@lists.postgresql.org; Mon, 09 Oct 2023 05:41:50 +0000 Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qpj1Y-000jbO-ES for pgsql-hackers@lists.postgresql.org; Mon, 09 Oct 2023 05:41:49 +0000 Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-59e88a28b98so35314147b3.1 for ; Sun, 08 Oct 2023 22:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696830107; x=1697434907; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=z5ikjQuknq9zFXpOU4wuyJTXkCsW0XIQZKRIizNjNyQ=; b=BdOGv0ymRkomL7XP3yEBnqbP52VtCbX6eAN3xjgVPGsoXijxqe98yzbtRr4MAKutfa Wj+dPAQy6XwAfczZ4X0/ZzWMLje5AFizzCuZY2B4gJfcq0REoDcbDfrJrIu33vDQP8Tw inP89hMo3iJVzmX1m+4OiHivlV85vGCJfyZHwNibQabUGBt1MZ/04rgT9C/dtYIG0jLt IzOkl+YcZGPIUTF2H6DsO0r1ul9/Jnjmy8DwaKrzc1EvlHJq4m4clFc7Wiq+1hQy9fnQ i7R60dpWjH2r0jKlxTqQ9Yq4u/rK1kF2IxehXsUXUAAncyeRXKcXtj4/d+A1nG9eCfde w8AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696830107; x=1697434907; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=z5ikjQuknq9zFXpOU4wuyJTXkCsW0XIQZKRIizNjNyQ=; b=C/MGIRvfsHdGfotmaEmcI/VgOz55hoMMhkDpiy7yZxavU1vLZns4SUf9rvkIUk2YIa h6DxtGP6QJu+J7UXuJ9a/ecu9A6RTFWxv/tt+xpVUwoiIAahui1Jtx/f6tS9Cn1z88Tz 7QbTabwHNWybEWhwZKzdb+jYGA0d2P3rho1wQGsKE24VFdxEG8X0hp0HaWuSqfwOITuU pjp9CQCDiMATpXFC83uyRXIiiZ0RrMLYhViYcDEyqSuiWz0SfbXQWx0h7uKnPR6Zk4Qs EOIiOOqZdxW7Z+cTRE+PZtILBwR0pvTBGwK8e0XN9LplQpxQkPMy+OObmueq4MhyYnsf rDlg== X-Gm-Message-State: AOJu0YzDKh++S25BqgKIaC9dxPCxU8dPMBiAuc8gDojVenbDEPCXK9Hg y5D0MlYQ5xB74CqTXefUOU8IKzT8R74+X4RxesU= X-Google-Smtp-Source: AGHT+IGhfcPNW/UX7yxydAwcCRa56VcIcMBp8kOFbq6zpKFQohmQFedO16ZNeVoChJHozaUJzlEItDzwnB4aA5kIAWw= X-Received: by 2002:a0d:cc02:0:b0:589:a400:a046 with SMTP id o2-20020a0dcc02000000b00589a400a046mr7726374ywd.14.1696830107725; Sun, 08 Oct 2023 22:41:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Richard Guo Date: Mon, 9 Oct 2023 13:41:36 +0800 Message-ID: Subject: Re: pg16: XX000: could not find pathkey item to sort To: David Rowley Cc: Justin Pryzby , pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000d0b5380607420b50" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d0b5380607420b50 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 9, 2023 at 12:13=E2=80=AFPM David Rowley = wrote: > I've now pushed the patch that trims off the Pathkeys for the ORDER BY > / DISTINCT aggregates. Thanks for pushing! > Those results are a bit noisy. Perhaps a few more runs might yield > more consistency, but it seems that there's not too much overhead to > it. If I take the minimum value out of the 3 runs from each, it comes > to about 1.5% extra time spent in planning. Perhaps that's OK. I agree that the overhead is acceptable, especially it only happens in USE_ASSERT_CHECKING builds. Thanks Richard --000000000000d0b5380607420b50 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Mon, Oct 9, 2023 at 12:13=E2=80=AFPM D= avid Rowley <dgrowleyml@gmail.co= m> wrote:
I've now pushed the patch that trims off the Pathkeys for the ORDER BY<= br> / DISTINCT aggregates.

Thanks for pushing!<= br>
=C2=A0
Those results are a bit noisy.=C2=A0 Perhaps a few more runs might yield more consistency, but it seems that there's not too much overhead to it. If I take the minimum value out of the 3 runs from each, it comes
to about 1.5% extra time spent in planning.=C2=A0 Perhaps that's OK.

I agree that the overhead is acceptable, espe= cially it only happens in
USE_ASSERT_CHECKING builds.

Thanks
R= ichard
--000000000000d0b5380607420b50--