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 1k2Yhl-0007en-0i for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Aug 2020 11:32:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k2Yhj-0003LC-2t for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Aug 2020 11:32:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2Yhh-0003L4-JX for pgsql-hackers@lists.postgresql.org; Mon, 03 Aug 2020 11:32:30 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2Yhb-00023k-AW for pgsql-hackers@postgresql.org; Mon, 03 Aug 2020 11:32:28 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id B2EAD5C0059 for ; Mon, 3 Aug 2020 07:32:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 03 Aug 2020 07:32:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h= from:to:subject:references:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm2; bh= 9C5LtcIp+SeJgaxHhP4eMpzLRyrABaT2GqKed/fvvJs=; b=CvefbYeuq20W8K8b YM0nqThYlHu753VJ6RvIi7fICMqKwWFyEj5g5xP5PSFTUa2crNLPl+eOVE1VMNW5 5iOR717huSA4QYZLoDWUUAiPGt4q+91l+x7/enGEbXP1EHUN3mf3VXzVMtcls/wO dNOOgN215YGxJfF7fJq4xKMQb7rHB/0pw2R1Aa/4Gs5TIOhHxU28pBlO3zFd0hri mP/b191mQAOnVOws4UE2Sldvk4d3TcnaPAyM4/LEL81E23ewj8Vs6aRMM2QqhKc4 0oK+Pnu5wFkpP9fOI29GES3L6w9fpVpbcEjc7kFFKsD6OXY8eCBRvx6/nqHtaQLR FzEntg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=9C5LtcIp+SeJgaxHhP4eMpzLRyrABaT2GqKed/fvv Js=; b=jMBSLzFwd4g7TelJSi2CZBa6dalOcyd5ic/bcG9aCPWv5+qQ0x4JuBp9k TO1LYQPbySpkpitBXd1NV9/fGQjnYwo0QqfFkOtbCO/Qw+RhRUk6IcdUCLfG20hp yRail4KHJCbOnadENzOp0ejNIevs84Jfs+DNCFdsn+yhX+fLjnhJY76lCbk2UucJ gz3xbem+NTSvGM9gvCBbSHlhS6vBE3PE5GdsXE6JXkBPVgUlC52CqLPG4NLUZDeR XsHDoNhBYO1OlCEnfHOibh6Dpj8bxHBB4nTBeKYqhe8ELqSaHyNKLBxCKMN5Q1b+ 6t/n6AU0A0smGeHJHRv3nfx0UsBkg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrjeeggdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtgfesthekre dttderjeenucfhrhhomhepihhlmhgrrhhisehilhhmrghrihdrohhrghculdffrghgfhhi nhhnucfklhhmrghrihcuofgrnhhnshonkhgvrhdmnecuggftrfgrthhtvghrnheptdehgf egteefledvgeevveehteeitefhhefggfevudejtedvgfefieetjeelkedtnecuffhomhgr ihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepgeeirdegfedrudehrddvhedvne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhlmhgr rhhisehilhhmrghrihdrohhrgh X-ME-Proxy: Received: from wibble.ilmari.org (wibble.ilmari.org [46.43.15.252]) by mail.messagingengine.com (Postfix) with ESMTPA id 15DFB30600A6 for ; Mon, 3 Aug 2020 07:32:20 -0400 (EDT) From: ilmari@ilmari.org (Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?=) To: pgsql-hackers@postgresql.org Subject: Re: [PATCH] Add section headings to index types doc References: <877dukhvzg.fsf@wibble.ilmari.org> Date: Mon, 03 Aug 2020 12:32:17 +0100 In-Reply-To: <877dukhvzg.fsf@wibble.ilmari.org> ("Dagfinn Ilmari \=\?utf-8\?Q\?Manns\=C3\=A5ker\=22's\?\= message of "Fri, 31 Jul 2020 10:30:59 +0100") Message-ID: <87wo2gge2m.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ilmari@ilmari.org (Dagfinn Ilmari Mannsåker) writes: > Hi hackers, > > Every time I have to look up what kinds of operations each index type is > suitable for, I get annoyed by the index types page being virtually > unskimmable due to not having headings for each index type. > > Attached is a patch that adds tags for each index type to make > it easier to see where the description of each one starts. Added to the next commitfest: https://commitfest.postgresql.org/29/2665/ Also, for easier review, here's the `git diff -w` output, since the tags caused most of the page to have to be renidented. Tangentially, does anyone know of a tool to strip whitespace changes from an existing diff, as if it had been generated with `-w` in the first place? diff --git a/doc/src/sgml/indices.sgml b/doc/src/sgml/indices.sgml index 28adaba72d..332d161547 100644 --- a/doc/src/sgml/indices.sgml +++ b/doc/src/sgml/indices.sgml @@ -122,6 +122,9 @@ B-tree indexes, which fit the most common situations. + + B-tree + index @@ -172,6 +175,10 @@ This is not always faster than a simple scan and sort, but it is often helpful. + + + + Hash @@ -191,6 +198,10 @@ CREATE INDEX name ON table USING HASH (column); + + + + GiST @@ -246,6 +257,10 @@ In , operators that can be used in this way are listed in the column Ordering Operators. + + + + SP-GiST @@ -286,6 +301,10 @@ corresponding operator is specified in the Ordering Operators column in . + + + + GIN @@ -327,6 +346,10 @@ classes are available in the contrib collection or as separate projects. For more information see . + + + + BRIN @@ -360,6 +383,7 @@ documented in . For more information see . + - ilmari -- "A disappointingly low fraction of the human race is, at any given time, on fire." - Stig Sandbeck Mathisen