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 1lYbej-0000ct-LU for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Apr 2021 21:42:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lYbei-0002IJ-Ja for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Apr 2021 21:42:08 +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 1lYbei-0002HJ-Cx for pgsql-hackers@lists.postgresql.org; Mon, 19 Apr 2021 21:42:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYbeg-0007bP-Fd for pgsql-hackers@postgresql.org; Mon, 19 Apr 2021 21:42:07 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13JLg40p345182; Mon, 19 Apr 2021 17:42:04 -0400 From: Tom Lane To: James Coleman cc: Tomas Vondra , Luc Vlaming , PostgreSQL-development , Robert Haas Subject: Re: "could not find pathkey item to sort" for TPC-DS queries 94-96 In-reply-to: <344971.1618868270@sss.pgh.pa.us> References: <91f3ec99-85a4-fa55-ea74-33f85a5c651f@swarm64.com> <355670.1618688385@sss.pgh.pa.us> <344971.1618868270@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 19 Apr 2021 17:37:50 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <345180.1618868524.1@sss.pgh.pa.us> Date: Mon, 19 Apr 2021 17:42:04 -0400 Message-ID: <345181.1618868524@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > I'm not wedded to that name, certainly, but it seems like neither > of these is quite getting at the issue. An EC can be sorted on, > by definition, but there are some things we don't want to sort > on till the final output step. I was trying to think of something > using the terminology "early sort", but didn't much like > "relation_has_early_sortable_ec_member" or obvious variants of that. ... or, as long as it's returning a boolean, maybe it could be "relation_can_be_sorted_early" ? regards, tom lane