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 1jcxog-0001YZ-BW for pgsql-hackers@arkaria.postgresql.org; Sun, 24 May 2020 21:05:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jcxod-0006Bn-0o for pgsql-hackers@arkaria.postgresql.org; Sun, 24 May 2020 21:05:51 +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 1jcxoa-0006Bg-SM for pgsql-hackers@lists.postgresql.org; Sun, 24 May 2020 21:05:50 +0000 Received: from [64.147.123.19] (helo=wout3-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jcxoX-000740-4O for pgsql-hackers@lists.postgresql.org; Sun, 24 May 2020 21:05:47 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 8EDDE6DC for ; Sun, 24 May 2020 17:05:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 24 May 2020 17:05:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h= from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=0nLPg4Hj4N0ZJtWV+DZtqAQzCCw+df8By4TRnnGKSl8=; b=DPaRS8rf PvmUj4Ti+vyREFmSEUurA+LtkOwuBzfHYwo8Nwr/7yA+sZ9O2hE3cUZ52wNwvuI7 gFv+qx8QVmU1S5I69fNLpaKhTkIboaJYz8472F/z2wz28a+sxaFmZNZU0wBpWMUz OHCB+L94vU0gcsq/yThPeo9xcVHABiENnHLwoy+7haowS/taJ4bWC0hLCWekBRJC NBENYw7KgawKk2xHNMWMdMM4ed18dhqQKncR81qxZKWEdRbzBoNJcV95GICC4tWW ZChyU8daGEIur6LjM5pqmCvpAsWPgGEBNt1qTHg17HTuYGuiWrxaw5fWfzDWHwft YC8T4gbiJpK5GQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=0nLPg4Hj4N0ZJtWV+DZtqAQzCCw+d f8By4TRnnGKSl8=; b=l6eK+RiPq8zDFrBOcevX6hn1j0Y3zFoK772XggdgoBcs7 pQTY8k8T/XaizuUEP9c/co5vIrVjrGlzQaRqLicbzj2Arh8UeSwIICrJ+Orn/EH1 QHZhk0elRD8+xyWvssTF2IsJM6aIli/6a/YUEPNV1CbMyoj7PnKo5pvMf53/uOgq 8rCMApTvhkzazSa5jX9Hzv0B2E3GkV2SpS94zX4j0SwWG0RxDfNfC9n+8PyPz0eT 3szJyRU/fjYoKL5JGLCU1dnS+KWAVrygksD+v5MV8YYB0brPV0VbFEZMnR2nPEY1 R1bUfuOXbdZsT+ljvBY0bHLOtSRSbn1GZ9KiDD2mA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddukedgudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkfgggtgesmhdtreertderjeenucfhrhhomhepihhlmhgrrhhi sehilhhmrghrihdrohhrghculdffrghgfhhinhhnucfklhhmrghrihcuofgrnhhnshonkh gvrhdmnecuggftrfgrthhtvghrnhepleeigfdutdeugfeutefhvddvuddvteeivedvtdfg tdffiedviedvheeihedvveffnecukfhppeegiedrgeefrdduhedrvdehvdenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehilhhmrghrihesihhl mhgrrhhirdhorhhg X-ME-Proxy: Received: from wibble.ilmari.org (wibble.ilmari.org [46.43.15.252]) by mail.messagingengine.com (Postfix) with ESMTPA id B24A13280064 for ; Sun, 24 May 2020 17:05:32 -0400 (EDT) From: ilmari@ilmari.org (Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?=) To: PostgreSQL Hackers Subject: Missing links between system catalog documentation pages Date: Sun, 24 May 2020 22:05:30 +0100 Message-ID: <87mu5xqc11.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.19 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-=-= Content-Type: text/plain Hi hackers, While browsing the system catalog docs earlier I noticed that a lot of them mention other catalogs or views in the introductory paragrah without hyperlinking them. Now, most of these are linked in the "references" column in the table, but some, like pg_proc's mention of pg_aggregate have no direct links at all. The attached patch makes the first mention of another system catalog or view (as well as pg_hba.conf in pg_hba_file_lines) a link, for easier navigation. - ilmari -- - Twitter seems more influential [than blogs] in the 'gets reported in the mainstream press' sense at least. - Matt McLeod - That'd be because the content of a tweet is easier to condense down to a mainstream media article. - Calle Dybedahl --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Add-missing-cross-links-in-system-catalog-documentat.patch From bd0e807264e664034ae0cee62f77104da1da57a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= Date: Sun, 24 May 2020 21:48:29 +0100 Subject: [PATCH] Add missing cross-links in system catalog documentation This makes the first mention of another system catalog or view in the introductory paragraph a system catalog or view a hyperlink, for easier navigation. Some of them are also linked because of columns referencing them, but this avoids having to hunt for that. Also linkify the first mention of pg_hba.conf in pg_hba_file_rules, as that's more specific and easier to spot than the link to the client authentication chapter at the bottom. --- doc/src/sgml/catalogs.sgml | 69 ++++++++++++++++++++++---------------- 1 file changed, 41 insertions(+), 28 deletions(-) diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index 9851ef2713..8df73e3ba4 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -381,9 +381,10 @@ sum, count, and max. Each entry in pg_aggregate is an extension of an entry - in pg_proc. The pg_proc - entry carries the aggregate's name, input and output data types, and - other information that is similar to ordinary functions. + in pg_proc. + The pg_proc entry carries the aggregate's name, + input and output data types, and other information that is similar to + ordinary functions. @@ -1099,7 +1100,8 @@ table columns. There will be exactly one pg_attribute row for every column in every table in the database. (There will also be attribute entries for - indexes, and indeed all objects that have pg_class + indexes, and indeed all objects that have + pg_class entries.) @@ -1835,14 +1837,16 @@ The catalog pg_class catalogs tables and most - everything else that has columns or is otherwise similar to a - table. This includes indexes (but see also - pg_index), sequences (but see also - pg_sequence), views, materialized - views, composite types, and TOAST tables; see relkind. - Below, when we mean all of these - kinds of objects we speak of relations. Not all - columns are meaningful for all relation types. + everything else that has columns or is otherwise similar to a table. + This includes indexes (but see also pg_index), + sequences (but see also pg_sequence), + views, materialized views, composite types, and TOAST tables; + see relkind. + Below, when we mean all of these kinds of objects we speak of + relations. Not all columns are meaningful for all relation + types.
@@ -2404,7 +2408,8 @@ key, unique, foreign key, and exclusion constraints on tables. (Column constraints are not treated specially. Every column constraint is equivalent to some table constraint.) - Not-null constraints are represented in the pg_attribute + Not-null constraints are represented in the + pg_attribute catalog, not here. @@ -4094,11 +4099,13 @@ The catalog pg_foreign_table contains - auxiliary information about foreign tables. A foreign table is - primarily represented by a pg_class entry, - just like a regular table. Its pg_foreign_table - entry contains the information that is pertinent only to foreign tables - and not any other kind of relation. + auxiliary information about foreign tables. + A foreign table is primarily represented by a + pg_class + entry, just like a regular table. + Its pg_foreign_table entry contains the + information that is pertinent only to foreign tables and not any other kind + of relation.
@@ -4160,7 +4167,7 @@ The catalog pg_index contains part of the information about indexes. The rest is mostly in - pg_class. + pg_class.
@@ -5625,7 +5632,7 @@ If prokind indicates that the entry is for an aggregate function, there should be a matching row in - pg_aggregate. + pg_aggregate.
@@ -6555,7 +6562,8 @@ The catalog pg_sequence contains information about sequences. Some of the information about sequences, such as the name and - the schema, is in pg_class. + the schema, is in + pg_class
@@ -7338,7 +7346,8 @@ The catalog pg_statistic_ext_data - holds data for extended planner statistics defined in pg_statistic_ext. + holds data for extended planner statistics defined in + pg_statistic_ext. Each row in this catalog corresponds to a statistics object created with . @@ -9964,8 +9973,9 @@ The view pg_hba_file_rules provides a summary of - the contents of the client authentication configuration - file, pg_hba.conf. A row appears in this view for each + the contents of the client authentication configuration file, + pg_hba.conf. + A row appears in this view for each non-empty, non-comment line in the file, with annotations indicating whether the rule could be applied successfully. @@ -10206,8 +10216,10 @@ individual tuples of relations, transaction IDs (both virtual and permanent IDs), and general database objects (identified by class OID and object OID, - in the same way as in pg_description or - pg_depend). Also, the right to extend a + in the same way as in + pg_description + or pg_depend). + Also, the right to extend a relation is represented as a separate lockable object. Also, advisory locks can be taken on numbers that have user-defined meanings. @@ -10943,8 +10955,9 @@ The view pg_publication_tables provides information about the mapping between publications and the tables they - contain. Unlike the underlying - catalog pg_publication_rel, this view expands + contain. Unlike the underlying catalog + pg_publication_rel, + this view expands publications defined as FOR ALL TABLES, so for such publications there will be a row for each eligible table. -- 2.26.2 --=-=-=--