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 1rzZED-004vd4-5Q for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Apr 2024 09:47:49 +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 1rzZEB-00De4O-S1 for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Apr 2024 09:47:47 +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 1rzZEB-00De4F-ID for pgsql-hackers@lists.postgresql.org; Wed, 24 Apr 2024 09:47:47 +0000 Received: from ml.sraoss.co.jp ([66.11.59.17]) by makus.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rzZE3-004OSX-U8 for pgsql-hackers@postgresql.org; Wed, 24 Apr 2024 09:47:45 +0000 Received: from sranhm.sraoss.co.jp (unknown [192.168.174.164]) by osspc26.sraoss.co.jp (Postfix) with ESMTP id 5677D2F00095; Wed, 24 Apr 2024 18:47:37 +0900 (JST) Received: from yugon-CFSV7-1 (dhcp-175-106.sraoss.co.jp [192.168.175.106]) by sranhm.sraoss.co.jp (Postfix) with SMTP id 37BC234162C; Wed, 24 Apr 2024 18:47:37 +0900 (JST) Date: Wed, 24 Apr 2024 18:47:36 +0900 From: Yugo NAGATA To: jian he Cc: PostgreSQL-development Subject: Re: minor error message inconsistency in make_pathkey_from_sortinfo Message-Id: <20240424184736.d16803a87d6c8a22088e0a2b@sraoss.co.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 24 Apr 2024 15:05:00 +0800 jian he wrote: > hi. > > in make_pathkey_from_sortinfo > > equality_op = get_opfamily_member(opfamily, > opcintype, > opcintype, > BTEqualStrategyNumber); > if (!OidIsValid(equality_op)) /* shouldn't happen */ > elog(ERROR, "missing operator %d(%u,%u) in opfamily %u", > BTEqualStrategyNumber, opcintype, opcintype, opfamily); > > the error message seems not right? This message was introduced by 278cb434110 which was aiming to standardize the wording for similar errors. We can find the pattern "missing {support function | operator} %d(%u,%u) in opfamily %u" in several places. Regards, Yugo Nagata > > maybe > if (!OidIsValid(equality_op)) /* shouldn't happen */ > elog(ERROR, "missing operator =(%u,%u) in opfamily %u",opcintype, > opcintype, opfamily); > > or > > if (!OidIsValid(equality_op)) /* shouldn't happen */ > elog(ERROR, "missing equality operator for type %u in opfamily > %u",opcintype, opcintype, opfamily); > > -- Yugo NAGATA