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.96) (envelope-from ) id 1wcL4L-003H2R-36 for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jun 2026 10:42:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wcL3L-000Ivi-2F for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jun 2026 10:41:55 +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.96) (envelope-from ) id 1wcL3L-000IvY-1C for pgsql-hackers@lists.postgresql.org; Wed, 24 Jun 2026 10:41:55 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wcL3I-000000000hi-0dve for pgsql-hackers@postgresql.org; Wed, 24 Jun 2026 10:41:53 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-693c51a8a19so1529948a12.3 for ; Wed, 24 Jun 2026 03:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1782297708; x=1782902508; darn=postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=N/wnm9xvZgbmwhUWKDyShPbwUC66pIZ31yRbRTZqG30=; b=EIhJnLPFlCck52JMAqQvDAhx/gxPruJDjEIxPyjZZqd3C106/ngGsNvJ9hUDF0sadr xJhHmWAAQsT8fKa14P53Rs3ogVdTMDTKNusRxRxBjrJd1ZJMQRNav+buO4pHXVF9w/+T CTU5RVftY3SNUjOPLhEnyvBxSH3/9/mJby/BFB0xub4cnBfgGiHpN0uXhgXXrCryjqvJ CQT+pynpJfjwzMO6Hbsy2tYtwCnutUmL/gaO0deajqj1gUVGY0wu9LUOeG6uw5EJTEQm p5HFtGe3xqafz0EcRY7wNhyFr9Z81ymKQ5sHjhWeUmEAD98Tg98GViNx0Fqd6823LDnB 8yzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782297708; x=1782902508; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=N/wnm9xvZgbmwhUWKDyShPbwUC66pIZ31yRbRTZqG30=; b=hb+D9wvfTgLPHDHqBSbZb1+Egx937MSMjSrI4YXnuj2q+Ur8KC7U6onKlgtjBBMsH7 AaJQVviEB/q8vR4OIvcFOOo8dJAy+e52ozNV/bMtRF789C1eRm03BR29lhXlaanHYJ0W MmT8jfEGJTN5osk+PscRVXIRygbi603nW00xjgIG4waSESB4F1G27qL8mFcdFGu/HiIx 8Ugv6+53DI7AxWsK14cIM+1vPiQjMApdAo5fl/IkHVutrEokkLFngW7pjzAdXqy+BL1G YaeXjYXgkFnzGnbGo1vjeywW8qkEKN7pnpvI8/u3sVPJl18w5QWspB7qp3VouUlX/eX2 hjcw== X-Forwarded-Encrypted: i=1; AHgh+RrlQ4pjR3h+3MJ69KHcfDs5GyaLadnTurppoT+eTo8kH0yLuIHqsVrPZMGwoOp9BHEIdNZGz8p9wUG2UTVC@postgresql.org X-Gm-Message-State: AOJu0Ywbo3C/x+NId6RDTdhMN/wBC+F7Hh7Z+v50Ja+TqUhCBhPfjWC/ wqH0g23/ERooVzkKxRYYA2HnKWJvprQVfqLugYIm8V9tAfTLME8Mujp+BQEfbWMOIg== X-Gm-Gg: AfdE7ckR42oYjjGUZFik7j0FNkZ+8b+47UtWlWtOn3MZaF9JmjjUaXsOGzKhi6+tVQc 0YqeAyg3R3lx1LPsusUTmUnnBvYDq/MHpdCMGmO94/o5ZypKKJ/ElVMZXVS+GkrK0FRdFtz2col B5kMjLA4UJyAKWE2vtlrl+5ShCLKzJMBstt3yiB8z/4dcU05JYe9hm8RnuAbpvixp3pibQNdcw7 ZrnuYs2b3RRJoWkc2ORs5S5u0RdECYsoLs1MvYY2ItjtMujFnfCVBiAPb3dqGEG5Pc8n+GVkL1r ROJRMtBt3Ym+5HDKHB+8//hvzhfrJWp8yhgX7R0XdbQv4gFyzjgVKp1uxnIMU195FOkhjwmwScN 2oZCp94MJenFpEls/PAAcQFWRKDfvLrGcHlQ9S/Bx+b/2XhFQ8Mhm/qutU422j/cXeeafwjx0Fo auE1MuY95x9jmvfI+gIvnAduraIhUQcdGhVY/pEf6cCeIIdqO7jKsfz+olrLrYol8= X-Received: by 2002:a05:6402:270c:b0:697:833e:9179 with SMTP id 4fb4d7f45d1cf-697dba861c7mr3913879a12.11.1782297708592; Wed, 24 Jun 2026 03:41:48 -0700 (PDT) Received: from smtpclient.apple ([2a02:a03f:61b7:f401:a4fb:605f:c522:2265]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-697f3aec1a3sm883524a12.11.2026.06.24.03.41.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jun 2026 03:41:48 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: [PATCH] btree_gist: add cross-type integer operator support for GiST From: Maxime Schoemans In-Reply-To: Date: Wed, 24 Jun 2026 12:41:37 +0200 Cc: Andrey Borodin , pgsql-hackers mailing list Content-Transfer-Encoding: quoted-printable Message-Id: <68E31455-03AB-4EAA-A87C-95D95711CC70@enterprisedb.com> References: <36b4f67d-5975-452c-a6b8-b6407f0924ee@Spark> <4B4B0998-7B43-4893-9603-0AF212036690@yandex-team.ru> <18e88767-6c31-402a-887e-37c38b366a6a@Spark> <80ef3b41-1a71-47a4-a320-29e118d7092c@Spark> To: Alexander Nestorov X-Mailer: Apple Mail (2.3864.600.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Alexander, > I think we still need to check `InvalidOid` because = execIndexing.c:~800 > initializes scan keys ('ScanKeyEntryInitialize') with `InvalidOid` as = the > subtype. Running the 'not_equal', 'partitions' and 'without_overlaps' = tests > confirms that 'InvalidOid' must be handled. I can add the check again = in the > switch. (attaching patch) You are completely right, I missed this while reading the source code. > I completely agree, your patch makes it much cleaner. > I applied your patch (with the 'InvalidOid' fix) on top of mine and = ran all the > tests and benchmarks that I prepared previously. [...] I'm glad you like the suggestion, and thank you for the pgindent fixes that I missed. Since this implementation now replaces the initial one in 0001, it might be worth squashing 0001 and 0004 (and the 0005 fixes) into a single 0001 patch, unless you want to keep the history of this work in the patch series. > I added one more commit that adds a small description of this fix in = the docs. This patch also looks good to me, although I may not be the best person to review doc changes. One last tiny thing: 0001 adds int_crosstype to the regress tests but the test file is only added in 0002, so 0001 on its own fails `make check`. Might be worth moving the Makefile/meson.build registration into 0002 so each patch passes its own tests. I think that one additional thing needed before it's ready would be to add commit messages to each patch. Other than that it looks good, I don't have any additional code comments. Best, Maxime