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 1lEc5U-0004wf-HS for pgsql-general@arkaria.postgresql.org; Tue, 23 Feb 2021 18:07:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lEc5T-0005fV-GV for pgsql-general@arkaria.postgresql.org; Tue, 23 Feb 2021 18:07:07 +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 1lEc5T-0005fO-93 for pgsql-general@lists.postgresql.org; Tue, 23 Feb 2021 18:07:07 +0000 Received: from madoka.blicky.net ([51.15.19.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEc5R-0007D2-DF for pgsql-general@lists.postgresql.org; Tue, 23 Feb 2021 18:07:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=blicky.net; s=62x80x37apav; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZkPOi81vx8SGrvwOZJFUXRSn/VSUVc0Pq/6WpfQYvYY=; b=Lb3PcW5mjzZqb+qmbglAsciWPj 5Y/p1B8cPkE1Fcm1BCPubEqy+KgsW3hmD9k0UNrcyUajf1qJkXGAcxwfCFhSaupKefZm0O6PFmF14 2eyr/yLtoKJmZyM9X8riOlhjnIgbGqR1B9kijI8S4JEwGS7Ojkk2wLPaC4e6x0e5XvRw=; Received: by madoka.blicky.net; Tue, 23 Feb 2021 19:07:03 +0100 Received: by gmai021; Tue, 23 Feb 2021 19:07:03 +0100 Date: Tue, 23 Feb 2021 19:07:03 +0100 From: Ayo To: Tom Lane Cc: pgsql-general@lists.postgresql.org Subject: Re: Custom base type and suboptimal query plans Message-ID: References: <3822526.1614093860@sss.pgh.pa.us> <3873892.1614100834@sss.pgh.pa.us> <3875364.1614102470@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3875364.1614102470@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021-02-23, Tom Lane wrote: > Hmm ... did you remember to set the oprcanhash property on the equality > operator? Aaah! That was it, I had totally missed the HASHES and MERGES options to CREATE OPERATOR. It works perfectly now that I set those. Do those options make sense for other operators besides equality, too? Many thanks for the help.