pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: [PATCH] Missing links between system catalog documentation pages
Date: Sun, 21 Jun 2020 09:01:12 +0200 (CEST)
Message-ID: <alpine.DEB.2.22.394.2006210850220.859381@pseudo> (raw)
In-Reply-To: <871rmdpzjt.fsf@wibble.ilmari.org>
References: <87mu5xqc11.fsf@wibble.ilmari.org>
	<87ftawp3n4.fsf@wibble.ilmari.org>
	<alpine.DEB.2.22.394.2006160640020.666564@pseudo>
	<871rmdpzjt.fsf@wibble.ilmari.org>


Hello Dagfinn,

>>>> The attached patch

applies cleanly, doc generation is ok. I'm ok with adding such links 
systematically.

>>>> 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.
>>
>> Why only the first mention? It seems unlikely that I would ever read
>> such chapter linearly, and even so that I would want to jump especially
>> on the first occurrence but not on others, so ISTM that it should be
>> done all mentions?
>
> It's the first mention in the introductory paragraph of _each_ catalog
> table/view page, not the first mention in the entire catalogs.sgml file.
> E.g. https://www.postgresql.org/docs/current/catalog-pg-aggregate.html
> has two mentions of pg_proc one word apart:
>
>   Each entry in pg_aggregate is an extension of an entry in pg_proc. The
>   pg_proc entry carries the aggregate's name, …
>
> I didn't think there was much point in linkifying both in that case, and
> other similar situations.

The point is that the user reads a sentence, attempts to jump but 
sometimes can't, because the is not the first occurrence. I'd go for all 
mentions of another relation should be link.

Alse, ISTM you missed some, maybe you could consider adding them? eg 
pg_database in the very first paragraph of the file, pg_attrdef in 
pg_attribute description, quite a few in pg_class…

-- 
Fabien.

view thread (12+ messages)  latest in thread

Message-ID: <alpine.DEB.2.22.394.2006210850220.859381@pseudo>
Permalink:  ../alpine.DEB.2.22.394.2006210850220.859381@pseudo/
Also on:    postgresql.org/message-id/alpine.DEB.2.22.394.2006210850220.859381@pseudo

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: coelho@cri.ensmp.fr, ilmari@ilmari.org
  Subject: Re: [PATCH] Missing links between system catalog documentation pages
  In-Reply-To: <alpine.DEB.2.22.394.2006210850220.859381@pseudo>
  References: <87mu5xqc11.fsf@wibble.ilmari.org> <87ftawp3n4.fsf@wibble.ilmari.org> <alpine.DEB.2.22.394.2006160640020.666564@pseudo> <871rmdpzjt.fsf@wibble.ilmari.org> <alpine.DEB.2.22.394.2006210850220.859381@pseudo>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox