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 1rDk0V-002y4t-GV for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Dec 2023 11:35:59 +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 1rDk0U-007OBr-8h for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Dec 2023 11:35:58 +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 1rDk0T-007OBj-N6 for pgsql-hackers@lists.postgresql.org; Thu, 14 Dec 2023 11:35:57 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rDk0R-00Bx6W-89 for pgsql-hackers@postgresql.org; Thu, 14 Dec 2023 11:35:57 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-54f4f7e88feso8829057a12.3 for ; Thu, 14 Dec 2023 03:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hasegeli.com; s=google; t=1702553753; x=1703158553; darn=postgresql.org; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0X+gJT/uFqqQXOBICU21CcUMIbaw7ATHMD30yN9aDs0=; b=Vh5c5qjsl0v4fsOgX2mvd2mscHiOlLqFAY9fnzUHnbJcPuNMRessFbbTcQWX5ppBOU sBv2mV88WAsyp7fY8bVxq4305dWqXB7D1E+AujYkse97TB9YM3W16EgqpYB88+it6MWe RW2Cbz1cV6nGGIiJmxOeoUShHCOapfo7LHg5E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702553753; x=1703158553; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0X+gJT/uFqqQXOBICU21CcUMIbaw7ATHMD30yN9aDs0=; b=RBfO7lWb32bQDbefGtHdC2OmNLGbebDsmtpQ+8bY7fr16Qx+E7CTAk0TwFVtuFuDek AFhnF1YqtVX01ta1xE18+OTCjx7wnfx0++Z7/VgPH2Gt/FJdOd/NimHBLbXLAK6gLrvX TSHwVmdujEBAaoL9VLQ3G+3zj8dmrwEDIa1ZBUgYN+gETYdeIbZEag10+ubNF24InO11 /kXykPU7Gid4gpVnEHdxo6LjRTSL3LEBf3dI31E8WyMDRIT04a6KAjYdfgoHZItuKTFl DSRS5cc6iG24PemMkXfRASe9iqmlyhBf3QqQuXzveTSzcPh7KaOndJENitoHHUc2Z8KO gUtw== X-Gm-Message-State: AOJu0Yw/OLPpPumzwUDpxQW9QXQ2idMX+aIIwxR3x4YiHlposVBFLe5E T4qmOZ1oHfsUUM+wUYYxe4c8wGWb2hoG206BK6o3Rw== X-Google-Smtp-Source: AGHT+IEd9fpRNaWj16RwExH5qrrcUXUi3e1Rks/6RPixmjra+MwHuaNWtA/qJfPyHRQ224CBcwczjpQaPwwIi8ql4hQ= X-Received: by 2002:a17:907:7faa:b0:a1d:232b:362b with SMTP id qk42-20020a1709077faa00b00a1d232b362bmr5911252ejc.74.1702553753530; Thu, 14 Dec 2023 03:35:53 -0800 (PST) MIME-Version: 1.0 References: <5fd19680-c0db-e9ea-eae6-971a369b4233@enterprisedb.com> In-Reply-To: <5fd19680-c0db-e9ea-eae6-971a369b4233@enterprisedb.com> Reply-To: emre@hasegeli.com From: Emre Hasegeli Date: Thu, 14 Dec 2023 12:35:17 +0100 Message-ID: Subject: Re: btree_gist into core? To: Peter Eisentraut Cc: pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Thoughts? I think it'd be really nice to do this without btree_gist. I imagine something like this: CREATE INDEX ON tbl USING gist ( range_col, int_col USING btree ) I think this would make the index access methods interface more useful. Index access method developers wouldn't need to provide operator classes for all data types. We could extend ACCESS METHOD definition to allow this: CREATE ACCESS METHOD my_hash_index TYPE INDEX IMPLEMENTS hash HANDLER my_hash_index_handler I realise this is a difficult project.