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 1lYbai-0000ST-UF for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Apr 2021 21:38:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lYbah-00031E-Ii for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Apr 2021 21:37:59 +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 1lYbah-00030t-BX for pgsql-hackers@lists.postgresql.org; Mon, 19 Apr 2021 21:37:59 +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 1lYbab-0007Ym-5g for pgsql-hackers@postgresql.org; Mon, 19 Apr 2021 21:37:58 +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 13JLboXI344972; Mon, 19 Apr 2021 17:37:50 -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: References: <91f3ec99-85a4-fa55-ea74-33f85a5c651f@swarm64.com> <355670.1618688385@sss.pgh.pa.us> Comments: In-reply-to James Coleman message dated "Mon, 19 Apr 2021 16:49:05 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <344970.1618868270.1@sss.pgh.pa.us> Date: Mon, 19 Apr 2021 17:37:50 -0400 Message-ID: <344971.1618868270@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk James Coleman writes: > I forgot to comment on this in my previous email, but it seems to me > that relation_has_safe_ec_member, while less wordy, isn't quite > descriptive enough. Perhaps something like > relation_has_sort_safe_ec_member? 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. regards, tom lane