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 1rbdAE-00GEjb-ES for pgsql-hackers@arkaria.postgresql.org; Sun, 18 Feb 2024 09:08:46 +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 1rbdAC-009PWl-Ah for pgsql-hackers@arkaria.postgresql.org; Sun, 18 Feb 2024 09:08:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rbdAC-009PWb-1M for pgsql-hackers@lists.postgresql.org; Sun, 18 Feb 2024 09:08:44 +0000 Received: from m15.mail.163.com ([45.254.50.220]) by magus.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rbdA6-007nlg-MU for pgsql-hackers@lists.postgresql.org; Sun, 18 Feb 2024 09:08:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=J3af4lycyKYnUXO0FLk+V8w1wFBzlKInyqWZA2mxPzc=; b=igj7clQKZ3RAokVSmjT5jnb7B/gMm8aGw1u6Ol02+gC/X+30eW1oB8rZXwltmf NA1o/OnxurErMDzoHhIxZ7BqGZPnW5EpHxmzjomJQqYE06UqyBP4/2K7E0G2X9c1 1o9VE3nNDNAXoD7SgC0TzAT5k3NZ6xdKYwWp81kKqCowk= Received: from 8235eee8a2a0 (unknown [140.205.118.209]) by gzga-smtp-mta-g0-2 (Coremail) with SMTP id _____wDnr34OydFlCsUFAg--.5537S3; Sun, 18 Feb 2024 17:08:31 +0800 (CST) References: <87o7cti48f.fsf@163.com> User-agent: mu4e 1.10.7; emacs 29.1 From: Andy Fan To: David Rowley Cc: Richard Guo , pgsql-hackers@lists.postgresql.org Subject: Re: Properly pathify the union planner Date: Sun, 18 Feb 2024 17:07:50 +0800 In-reply-to: Message-ID: <87jzn2gmwh.fsf@163.com> MIME-Version: 1.0 Content-Type: text/plain X-CM-TRANSID: _____wDnr34OydFlCsUFAg--.5537S3 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4RX4SFUUUUU X-Originating-IP: [140.205.118.209] X-CM-SenderInfo: x2klx3xlid0iqsrtqiywtou0bp/1tbiQBaIU2VOBgxxbQACsy List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk David Rowley writes: >> >> The two if-clauses looks unnecessary, it should be handled by >> pathkeys_count_contained_in already. The same issue exists in >> pathkeys_useful_for_ordering as well. Attached patch fix it in master. > > I agree. I'd rather not have those redundant checks in > pathkeys_useful_for_setop(), and I do want those functions to be as > similar as possible. So I think adjusting it in master is a good > idea. > > I've pushed your patch. > Thanks for the pushing! -- Best Regards Andy Fan