Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOiRh-0006WP-B0 for pgsql-docs@arkaria.postgresql.org; Thu, 18 Aug 2022 16:32:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oOiRg-0005h9-74 for pgsql-docs@arkaria.postgresql.org; Thu, 18 Aug 2022 16:32:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOiRf-0005h0-Ra for pgsql-docs@lists.postgresql.org; Thu, 18 Aug 2022 16:32:35 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOiRZ-0001kS-8d for pgsql-docs@postgresql.org; Thu, 18 Aug 2022 16:32:34 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1oOiRY-004UPD-45; Thu, 18 Aug 2022 12:32:28 -0400 Date: Thu, 18 Aug 2022 12:32:28 -0400 From: Bruce Momjian To: Jeff Janes Cc: pgsql-docs Subject: Re: CREATE INDEX...USING Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Hi7p1zjACQ972n25" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Hi7p1zjACQ972n25 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Aug 17, 2022 at 11:21:58PM -0400, Bruce Momjian wrote: > On Wed, Aug 17, 2022 at 05:11:23PM -0400, Jeff Janes wrote: > > That looks good to me.  But now looking over the linked pages more, it seems > > like https://www.postgresql.org/docs/current/indexes-types.html was never > > changed to admit the possibility of custom index access methods (like bloom) > > Uh, bloom is in /contrib, so we wouldn't mention that in the main docs, > I think. However, it might be nice to mention you can add others. > > > and neither was the 'replaceable class="parameter">method' section of https:// > > www.postgresql.org/docs/current/sql-createindex.html. > > Yes, seems we should say that you can install your own methods that can > be used, e.g., bloom. > > > Also, is it odd that we say essentially the same thing for literal USING as we > > say for the replaceable /method/? > > Well, this is embarrassing. Someone reported there was no mention of > USING in the CREATE INDEX docs, and I didn't see it either, so I added > it. > > However, CREATE INDEX just lists the parameters, not the keywords, so it > was already there as 'method', as you mentioned above. I will just > remove the USING section I recently added. I wrote the attached patch to address the issues above. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson --Hi7p1zjACQ972n25 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="using.diff" diff --git a/doc/src/sgml/indices.sgml b/doc/src/sgml/indices.sgml index 2a70e02f7c..0c3fcfd62f 100644 --- a/doc/src/sgml/indices.sgml +++ b/doc/src/sgml/indices.sgml @@ -117,7 +117,8 @@ CREATE INDEX test1_id_index ON test1 (id); PostgreSQL provides several index types: - B-tree, Hash, GiST, SP-GiST, GIN and BRIN. + B-tree, Hash, GiST, SP-GiST, GIN, BRIN, and the extension bloom. Each index type uses a different algorithm that is best suited to different types of queries. By default, the CREATE diff --git a/doc/src/sgml/ref/create_index.sgml b/doc/src/sgml/ref/create_index.sgml index 944fdb4b09..40986aa502 100644 --- a/doc/src/sgml/ref/create_index.sgml +++ b/doc/src/sgml/ref/create_index.sgml @@ -149,18 +149,6 @@ CREATE [ UNIQUE ] INDEX [ CONCURRENTLY ] [ [ IF NOT EXISTS ] - - USING - - - The optional USING clause specifies an index - type as described in . If not - specified, a default index type will be used based on the - data types of the columns. - - - - INCLUDE @@ -250,8 +238,9 @@ CREATE [ UNIQUE ] INDEX [ CONCURRENTLY ] [ [ IF NOT EXISTS ] The name of the index method to be used. Choices are btree, hash, - gist, spgist, gin, and - brin. + gist, spgist, gin, + brin, or user-installed access methods like + bloom. The default method is btree. --Hi7p1zjACQ972n25--