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 1tAYlX-00GRPA-Bo for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Nov 2024 18:03:55 +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 1tAYlU-00GfQI-Ov for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Nov 2024 18:03:53 +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 1tAYlU-00GfQ2-AT for pgsql-hackers@lists.postgresql.org; Mon, 11 Nov 2024 18:03:53 +0000 Received: from forwardcorp1b.mail.yandex.net ([178.154.239.136]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tAYlR-001OpH-6Z for pgsql-hackers@lists.postgresql.org; Mon, 11 Nov 2024 18:03:52 +0000 Received: from mail-nwsmtp-smtp-corp-main-26.myt.yp-c.yandex.net (mail-nwsmtp-smtp-corp-main-26.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:2016:0:640:373:0]) by forwardcorp1b.mail.yandex.net (Yandex) with ESMTPS id DC09860BEC; Mon, 11 Nov 2024 21:03:47 +0300 (MSK) Received: from smtpclient.apple (unknown [2a02:6b8:b081:b41f::1:35]) by mail-nwsmtp-smtp-corp-main-26.myt.yp-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id k3r0VN3AWOs0-2sU9Murr; Mon, 11 Nov 2024 21:03:47 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1731348227; bh=pFgD54NAbbcrfCX55RKHb58yPeIPOrXKTmdDLHnNTdI=; h=Message-Id:To:Date:References:Cc:In-Reply-To:From:Subject; b=xCLw1M2GdvEGWo/fFPjOQOpQb1ZQROVWAFFJPasVoLNynuiuNmyGmS+d0KJecVqrr YlVcKIYn11mEALsbXj284hRXrKoK3yg/wDu4YrUOIO0afGMqDOvViqPpMrkcDzBL/O ggmuF72CXOSYvtwVzSScSl5ziAjh0gyahvANWD+U= Authentication-Results: mail-nwsmtp-smtp-corp-main-26.myt.yp-c.yandex.net; dkim=pass header.i=@yandex-team.ru Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: [PATCH] Add sortsupport for range types and btree_gist From: "Andrey M. Borodin" In-Reply-To: <61128550659807032dd29c8c8a71674c818cbbb6.camel@oopsware.de> Date: Mon, 11 Nov 2024 23:03:36 +0500 Cc: jian he , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <7095B5FA-FADB-4524-B858-ECD14998710B@yandex-team.ru> References: <437ccbcf-8f80-2919-411d-a3af88becf6c@cybertec.at> <77f4bacbeb9d223f90b3a0bd55ef7d65407bfddd.camel@oopsware.de> <2f2e88bf1d44d06c1baf27bbf3db880f42a5cb87.camel@oopsware.de> <31f23e46f71b744fb639967169d7df4c748110af.camel@oopsware.de> <7C9400DF-66FE-4308-BAD8-92FE3D0E55C6@yandex-team.ru> <0d9fbd59de15e2fc987a850c3d1f8a79a6ede825.camel@oopsware.de> <19c62e62c79b727d2c9a82eaeecfea5017001099.camel@oopsware.de> <4BADF8DD-A4D3-43AA-AA08-037F6FFA40BC@yandex-team.ru> <61128550659807032dd29c8c8a71674c818cbbb6.camel@oopsware.de> To: Bernd Helmle X-Mailer: Apple Mail (2.3776.700.51) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 11 Nov 2024, at 21:41, Bernd Helmle wrote: >=20 > Updated and rebased patches attached. Hi Bernd! Some nitpicking: 0. postgres % git apply ~/Downloads/v7.3-Add-GIST-sortsupport-* /Users/x4mmm/Downloads/v7.3-Add-GIST-sortsupport-btree-gist.patch:19: = space before tab in indent. oid oid_buffering timestamp timestamp_buffering timestamptz \ /Users/x4mmm/Downloads/v7.3-Add-GIST-sortsupport-btree-gist.patch:20: = space before tab in indent. timestamptz_buffering time time_buffering timetz timetz_buffering = date \ /Users/x4mmm/Downloads/v7.3-Add-GIST-sortsupport-btree-gist.patch:21: = space before tab in indent. date_buffering interval interval_buffering macaddr macaddr_buffering = \ /Users/x4mmm/Downloads/v7.3-Add-GIST-sortsupport-btree-gist.patch:22: = space before tab in indent. macaddr8 macaddr8_buffering inet inet_buffering cidr cidr_buffering = text \ /Users/x4mmm/Downloads/v7.3-Add-GIST-sortsupport-btree-gist.patch:23: = space before tab in indent. text_buffering varchar varchar_buffering char char_buffering \ warning: 5 lines add whitespace errors. 1. I'm mostly seening patches formatted with `git patch-format` rather = than diffs as patches... 2. Changes in contrib/btree_gist/btree_gist.c seem unnecessary. 3. Why do you move "typedef struct int32key" to btree_gist.h, but do not = need to move all other keys? 4. These ifdedfs are not needed, just do INJECTION_POINT() #ifdef USE_INJECTION_POINTS INJECTION_POINT("btree-gist-sorted-build"); #endif Also, there are 61 occurance of this code. Why not just 1 in = gist_indexsortbuild() ? Thanks! Best regards, Andrey Borodin.