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 1lYnCa-0000jI-MO for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Apr 2021 10:01:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lYnCZ-0001p1-5Y for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Apr 2021 10:01:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYnCX-0001oQ-TZ for pgsql-hackers@lists.postgresql.org; Tue, 20 Apr 2021 10:01:50 +0000 Received: from [64.147.123.21] (helo=wout5-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYnCS-0007D4-OS for pgsql-hackers@postgresql.org; Tue, 20 Apr 2021 10:01:49 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 7B2F0189D; Tue, 20 Apr 2021 06:01:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 20 Apr 2021 06:01:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=aloNHI3VBSaqwORi0jMefbXUgM zkaqdHMFpK4ZdfC98=; b=pqB2Qeygz855+Kd/KnidtUUkbQ3xoqI86SkVgIeUxM CiK7pTPYvZCVkxzQVZ67/9/ATSdymed+jNJ2IGzY+Db5KWBPQuhydixAn5M/PT/K IsW+Li7JHyQ1gsFMkfHpowHHzLiVSJ76mZWansd4NR5BNLzp1+2yRHktauN1FNju bqP/rY5EWvNS9U4g3/u4cpB88vu1b9Ai/eoN4toE9AWEgNi/MsZ2PbABJdx3F5dr 29z+xpasf6Bw/cotAKeixchpzL81s0B8UuTw8J9mxSNpiLMXdsYjSwxZg6QOWPtB PWzGvHcQ4s5ZzPjbF8r9T51f1aSmFDqsvdd5q+GcB1oQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=aloNHI 3VBSaqwORi0jMefbXUgMzkaqdHMFpK4ZdfC98=; b=O6ahjnP0T82Vw1BDCuUmrZ zt3tr9Ap3llJ41mSKAkaeybnjPenBmHidO29eDFN8hcfKKddU+RjdFSyTXv/TTbp nt3+veHtkDJ/snPGAkkuOKS4O0kM/A8h9Y8qeE4pkIfzfq/0W38sHaVFHzl7imxL 5NzN/q2ZYNP1/J0l7CfHyDf8Ae7yzulxwVUz2QivpQgKyTnndcpGrARB+/+XNzv/ wumD1rDpobmVPfeBm2AIyXh9EkNqlcuQRJxzwkIMNBVqCm2qdoULFqV2d+kVtosy DDB8JsxIqhZI6pOVM5ulE0yBezJDRMNBfW8TYA09cgU2pWnjeaH4fp9sKeNrY1Eg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtiedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtsehttdertddtreejnecuhfhrohhmpehilhhmrghr ihesihhlmhgrrhhirdhorhhgucdlffgrghhfihhnnhcukfhlmhgrrhhiucforghnnhhsno hkvghrmdenucggtffrrghtthgvrhhnpedugeevvdehjefhfffgleffhffhvdeguedtfedt vdeihfeffefhveeitedvffduffenucfkphepgeeirdegfedrudehrddvhedvnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhlmhgrrhhisehi lhhmrghrihdrohhrgh X-ME-Proxy: Received: from wibble.ilmari.org (wibble.ilmari.org [46.43.15.252]) by mail.messagingengine.com (Postfix) with ESMTPA id CB8EF1080057; Tue, 20 Apr 2021 06:01:29 -0400 (EDT) From: ilmari@ilmari.org (Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?=) To: Tom Lane Cc: James Coleman , Tomas Vondra , Luc Vlaming , PostgreSQL-development , Robert Haas Subject: Re: "could not find pathkey item to sort" for TPC-DS queries 94-96 References: <91f3ec99-85a4-fa55-ea74-33f85a5c651f@swarm64.com> <355670.1618688385@sss.pgh.pa.us> <90179.1618766515@sss.pgh.pa.us> <366787.1618870191@sss.pgh.pa.us> <459042.1618873805@sss.pgh.pa.us> Date: Tue, 20 Apr 2021 11:01:28 +0100 In-Reply-To: <459042.1618873805@sss.pgh.pa.us> (Tom Lane's message of "Mon, 19 Apr 2021 19:10:05 -0400") Message-ID: <87lf9dnukn.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.21 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tom Lane writes: > + /* We ignore binary-compatible relabeling on both ends */ > + while (expr && IsA(expr, RelabelType)) > + expr = ((RelabelType *) expr)->arg; There are 10 instances of this exact loop scattered around the codebase. Is it worth it turning it into a static inline function? - ilmari -- - Twitter seems more influential [than blogs] in the 'gets reported in the mainstream press' sense at least. - Matt McLeod - That'd be because the content of a tweet is easier to condense down to a mainstream media article. - Calle Dybedahl