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 1tHR7t-007XV6-T4 for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Nov 2024 17:19:26 +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 1tHR7p-000gAc-Vs for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Nov 2024 17:19:23 +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 1tHR7p-000gA6-G5 for pgsql-hackers@lists.postgresql.org; Sat, 30 Nov 2024 17:19:22 +0000 Received: from forwardcorp1a.mail.yandex.net ([2a02:6b8:c0e:500:1:45:d181:df01]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tHR7i-000M0x-9r for pgsql-hackers@lists.postgresql.org; Sat, 30 Nov 2024 17:19:21 +0000 Received: from mail-nwsmtp-smtp-corp-main-83.vla.yp-c.yandex.net (mail-nwsmtp-smtp-corp-main-83.vla.yp-c.yandex.net [IPv6:2a02:6b8:c15:2711:0:640:16b3:0]) by forwardcorp1a.mail.yandex.net (Yandex) with ESMTPS id 25597618C6; Sat, 30 Nov 2024 20:19:08 +0300 (MSK) Received: from smtpclient.apple (unknown [2a02:6b8:b081:b691::1:14]) by mail-nwsmtp-smtp-corp-main-83.vla.yp-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id 6Jg2U62IheA0-Lckp9EJC; Sat, 30 Nov 2024 20:19:07 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1732987147; bh=1CHj2gGpB9qG8sub/fE20ZV+Cuz43wTgPRyloJqJB2o=; h=Message-Id:To:Date:References:Cc:In-Reply-To:From:Subject; b=WWi2LiV9b7hgnwKPKVxGO6vHHKbyN42xopyHYflEKjcwOaBshhMdoR+VSFk0sLXrl xpKaPMz+dSLOHVgl0FhGSfMjV2aExBsUGoIF8GPrz9ovYFPYqZPxEwRrKRwLvxN6BR s3g0YJyTw4gfdHnCnFhjQlZrhCN2noEIdnn0yGPc= Authentication-Results: mail-nwsmtp-smtp-corp-main-83.vla.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 \(3774.200.91.1.1\)) Subject: Re: [PATCH] Add sortsupport for range types and btree_gist From: Andrey Borodin In-Reply-To: <78499920f1e9ed5895423e735272ca2fdb90baf6.camel@oopsware.de> Date: Sat, 30 Nov 2024 22:18:38 +0500 Cc: Michael Paquier , jian he , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <770DB2DA-0B56-464A-87CE-5620CF12E114@yandex-team.ru> References: <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> <7095B5FA-FADB-4524-B858-ECD14998710B@yandex-team.ru> <0176b173adfcff250543fe0aee2ef6137bd71953.camel@oopsware.de> <78499920f1e9ed5895423e735272ca2fdb90baf6.camel@oopsware.de> To: Bernd Helmle X-Mailer: Apple Mail (2.3774.200.91.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 30 Nov 2024, at 18:14, Bernd Helmle wrote: >=20 > I don't like this. This smells like we use the wrong tool. Andrey had > the idea to use them because it looked as a compelling idea to check > whether sortsupport is used in the code path or not.=20 >=20 > Maybe we should just use a specific DEBUG message and make sure it's > handled by the tests accordingly. We tried to go that route, random DEBUG1 lines were breaking tests = (autovacuum or something like that, there was something = non-deterministic). I think we can dig exact reason from 2021 thread why = we abandoned that idea... I think we have two options: 1. Just do not commit tests. We ran it manually, saw that paths are = taken, we are happy. 2. Have just one file that builds sorted index on a table with few = tuples for each data type. We do not need to test that core sorting (or buffered) build works. = AFAIR there's plenty of other tests to verify that. Injection points seemed to me exactly the technogy that could help us to = have tests for this patch. But at this point It looks like it's = reasonable to take approach 1, as we did before. Best regards, Andrey Borodin.=