pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedIntroductory docs-hacking task: Example markup
12+ messages / 6 participants
[nested] [flat]
* Introductory docs-hacking task: Example markup
@ 2026-11-11 12:29 Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
0 siblings, 1 reply; 12+ messages in thread
From: Daniel Gustafsson @ 2026-11-11 12:29 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org
Here is another doc hacking task pulled from my ever growing TODO which I think
would be suitable for someone keen to get started in hacking on the docs.
There is an element of research here in order to propose a fix, since the best
course of action is unknown (there are many possible options).
We have quite the variety in how we write examples in the docs, both within the
reference manpages and in the main documentation. A few examples (pun
intended) follow:
* https://www.postgresql.org/docs/devel/plpgsql-trigger.html
Here we use <example id=foo> to mark up the example and refer to the id
attribute in the text (sometimes just right before the example itself which
seems of questionable use).
* https://www.postgresql.org/docs/devel/typeconv-oper.html
This is similarly using <example> but no id for referencing it. There might
not be much need for referencing it in text of course, in which case omitting
the id is fine, but there seems to be little difference in "Some examples
follow" used here and "Example XX.YY below does blah" used elsewhere.
* https://www.postgresql.org/docs/devel/bloom.html#BLOOM-EXAMPLES
Here the example is a <sect2> which in turn creates a TOC entry for the example.
* https://www.postgresql.org/docs/devel/datatype-xml.html#DATATYPE-XML-CREATING
Another variant, here we just have a plain string "Examples:" with no markup at
all.
* https://www.postgresql.org/docs/devel/intagg.html
We only have one of this, but here we called it "Sample Uses" and made it a
<sect2>. Maybe that's fine, but there are similar sections elsewhere where we
use Examples so..
I'm sure there are more that I didn't see with a quick grep and skim. On top
of these there are also various combinations of Example(s) vs Exmaples, Example
Uses vs plain Examples etc.
Standardizing how we mark up examples would improve documentation consistency
and ideally make it easier to navigate and search. I have not done more than
collect the variants listed above so I don't know if the correct answer is "do
nothing" (which I doubt it is), but even reaching that conclusion would be a
step forward.
Anyone interested?
--
Daniel Gustafsson
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
@ 2026-11-12 02:41 ` Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 1 reply; 12+ messages in thread
From: Matemática A3K @ 2026-11-12 02:41 UTC (permalink / raw)
To: Daniel Gustafsson <daniel@yesql.se>; +Cc: pgsql-docs@lists.postgresql.org
On Wed, Nov 11, 2026 at 9:29 AM Daniel Gustafsson <daniel@yesql.se> wrote:
>
> Here is another doc hacking task pulled from my ever growing TODO which I think
> would be suitable for someone keen to get started in hacking on the docs.
> There is an element of research here in order to propose a fix, since the best
> course of action is unknown (there are many possible options).
>
> We have quite the variety in how we write examples in the docs, both within the
> reference manpages and in the main documentation. A few examples (pun
> intended) follow:
>
>
> * https://www.postgresql.org/docs/devel/plpgsql-trigger.html
> Here we use <example id=foo> to mark up the example and refer to the id
> attribute in the text (sometimes just right before the example itself which
> seems of questionable use).
>
> * https://www.postgresql.org/docs/devel/typeconv-oper.html
> This is similarly using <example> but no id for referencing it. There might
> not be much need for referencing it in text of course, in which case omitting
> the id is fine, but there seems to be little difference in "Some examples
> follow" used here and "Example XX.YY below does blah" used elsewhere.
>
> * https://www.postgresql.org/docs/devel/bloom.html#BLOOM-EXAMPLES
> Here the example is a <sect2> which in turn creates a TOC entry for the example.
>
> * https://www.postgresql.org/docs/devel/datatype-xml.html#DATATYPE-XML-CREATING
> Another variant, here we just have a plain string "Examples:" with no markup at
> all.
>
> * https://www.postgresql.org/docs/devel/intagg.html
> We only have one of this, but here we called it "Sample Uses" and made it a
> <sect2>. Maybe that's fine, but there are similar sections elsewhere where we
> use Examples so..
>
>
> I'm sure there are more that I didn't see with a quick grep and skim. On top
> of these there are also various combinations of Example(s) vs Exmaples, Example
> Uses vs plain Examples etc.
>
> Standardizing how we mark up examples would improve documentation consistency
> and ideally make it easier to navigate and search.
I will argue that no markup should be used for examples. The goal of
an example is to help readers understand a general functioning by
seeing a particular one. As such, they should be part of the prose
that explains the functioning, not an independent element to be
indexed. The only value I currently see in having a delimited or
encapsulated example is the ability to skip it if you already got it
from the explanation prose.
I propose to add "Remove example markup and blend the encapsulated
content into the prose of the belonging element" to the options being
considered.
> I have not done more than
> collect the variants listed above so I don't know if the correct answer is "do
> nothing" (which I doubt it is), but even reaching that conclusion would be a
> step forward.
>
> Anyone interested?
>
> --
> Daniel Gustafsson
>
>
>
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
@ 2026-11-12 02:56 ` David G. Johnston <david.g.johnston@gmail.com>
2026-11-12 07:33 ` RE: Introductory docs-hacking task: Example markup Xavier Fischer <xavier_fischer@hotmail.fr>
0 siblings, 1 reply; 12+ messages in thread
From: David G. Johnston @ 2026-11-12 02:56 UTC (permalink / raw)
To: Matemática A3K <matematica.a3k@gmail.com>; +Cc: Daniel Gustafsson <daniel@yesql.se>; pgsql-docs@lists.postgresql.org
On Wed, Nov 11, 2026 at 7:42 PM Matemática A3K <matematica.a3k@gmail.com>
wrote:
> On Wed, Nov 11, 2026 at 9:29 AM Daniel Gustafsson <daniel@yesql.se> wrote:
> >
> > Standardizing how we mark up examples would improve documentation
> consistency
> > and ideally make it easier to navigate and search.
>
Makes sense to me.
> I propose to add "Remove example markup and blend the encapsulated
> content into the prose of the belonging element" to the options being
> considered.
>
>
This seems unlikely to be accepted and is definitely not 'newcomer
friendly'. I'd suggest you, or anyone who does think this is needed,
provide at least three or four patch-quality examples of what you are
thinking on another thread first.
David J.
^ permalink raw reply [nested|flat] 12+ messages in thread
* RE: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
@ 2026-11-12 07:33 ` Xavier Fischer <xavier_fischer@hotmail.fr>
2026-11-12 12:33 ` Re: Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
0 siblings, 1 reply; 12+ messages in thread
From: Xavier Fischer @ 2026-11-12 07:33 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; Matemática A3K <matematica.a3k@gmail.com>; +Cc: Daniel Gustafsson <daniel@yesql.se>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>
On Wed, Nov 11, 2026 at 7:42 PM Matemática A3K <matematica.a3k@gmail.com<mailto:matematica.a3k@gmail.com>> wrote:
On Wed, Nov 11, 2026 at 9:29 AM Daniel Gustafsson <daniel@yesql.se<mailto:daniel@yesql.se>> wrote:
>
> I will argue that no markup should be used for examples. The goal of
> an example is to help readers understand a general functioning by
> seeing a particular one. As such, they should be part of the prose
> that explains the functioning, not an independent element to be
> indexed. The only value I currently see in having a delimited or
> encapsulated example is the ability to skip it if you already got it
> from the explanation prose.
I disagree with this: sometimes you want to search for examples of a construct, and having it indexed can avoid scrolling and makes clear that there's a dedicated section. I tend to do that when programming and it's useful to have a dedicated section to jump in directly.
There are some short examples in the middle of the main prose, not worth a section on their own.
Here are some examples :
Missing index: https://www.postgresql.org/docs/19/sql-altertable.html
Index not needed: examples are within the prose: https://www.postgresql.org/docs/19/functions-matching.html#FUNCTIONS-POSIX-REGEXP
Example without index for any section at all: https://www.postgresql.org/docs/current/sql-merge.html
I'll look for more examples
De : David G. Johnston <david.g.johnston@gmail.com>
Envoyé : jeudi 12 novembre 2026 03:56
>This seems unlikely to be accepted and is definitely not 'newcomer friendly'. I'd suggest you, or
> anyone who does think this is needed, provide at least three or four patch-quality examples of what
> you are thinking on another thread first.
Noted. Still it's a good way to learn the docs in my opinion. I agree that this should be splitted as separate work (current examples markup, missing index examples, sections where examples lack).
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
2026-11-12 07:33 ` RE: Introductory docs-hacking task: Example markup Xavier Fischer <xavier_fischer@hotmail.fr>
@ 2026-11-12 12:33 ` Daniel Gustafsson <daniel@yesql.se>
2026-11-17 03:00 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
0 siblings, 1 reply; 12+ messages in thread
From: Daniel Gustafsson @ 2026-11-12 12:33 UTC (permalink / raw)
To: Xavier Fischer <xavier_fischer@hotmail.fr>; +Cc: David G. Johnston <david.g.johnston@gmail.com>; Matemática A3K <matematica.a3k@gmail.com>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>
> On 12 Nov 2026, at 08:33, Xavier Fischer <xavier_fischer@hotmail.fr> wrote:
>
> On Wed, Nov 11, 2026 at 7:42 PM Matemática A3K <matematica.a3k@gmail.com<mailto:matematica.a3k@gmail.com>> wrote:
> On Wed, Nov 11, 2026 at 9:29 AM Daniel Gustafsson <daniel@yesql.se<mailto:daniel@yesql.se>> wrote:
>>
>> I will argue that no markup should be used for examples. The goal of
>> an example is to help readers understand a general functioning by
>> seeing a particular one. As such, they should be part of the prose
>> that explains the functioning, not an independent element to be
>> indexed. The only value I currently see in having a delimited or
>> encapsulated example is the ability to skip it if you already got it
>> from the explanation prose.
>
> I disagree with this: sometimes you want to search for examples of a construct, and having it indexed can avoid scrolling and makes clear that there's a dedicated section. I tend to do that when programming and it's useful to have a dedicated section to jump in directly.
> There are some short examples in the middle of the main prose, not worth a section on their own.
This aligns with my thinking. There might be cases where the example can be
made part of the prose but in general I think technical documentation is
improved by having separate and indexable examples.
One benefit to having proper markup is that the code in the examples can be
extracted and tested against the current codebase to ensure no example code has
become incorrect.
--
Daniel Gustafsson
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
2026-11-12 07:33 ` RE: Introductory docs-hacking task: Example markup Xavier Fischer <xavier_fischer@hotmail.fr>
2026-11-12 12:33 ` Re: Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
@ 2026-11-17 03:00 ` Matemática A3K <matematica.a3k@gmail.com>
2026-11-17 03:44 ` Re: Introductory docs-hacking task: Example markup Vinay Manikanda <vinay.manikanda@gmail.com>
2026-11-17 05:20 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
2026-11-17 09:35 ` Re: Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
0 siblings, 3 replies; 12+ messages in thread
From: Matemática A3K @ 2026-11-17 03:00 UTC (permalink / raw)
To: Daniel Gustafsson <daniel@yesql.se>; +Cc: Xavier Fischer <xavier_fischer@hotmail.fr>; David G. Johnston <david.g.johnston@gmail.com>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>
On Thu, Nov 12, 2026 at 9:33 AM Daniel Gustafsson <daniel@yesql.se> wrote:
>
> > On 12 Nov 2026, at 08:33, Xavier Fischer <xavier_fischer@hotmail.fr> wrote:
> >
> > On Wed, Nov 11, 2026 at 7:42 PM Matemática A3K <matematica.a3k@gmail.com<mailto:matematica.a3k@gmail.com>> wrote:
> > On Wed, Nov 11, 2026 at 9:29 AM Daniel Gustafsson <daniel@yesql.se<mailto:daniel@yesql.se>> wrote:
> >>
> >> I will argue that no markup should be used for examples. The goal of
> >> an example is to help readers understand a general functioning by
> >> seeing a particular one. As such, they should be part of the prose
> >> that explains the functioning, not an independent element to be
> >> indexed. The only value I currently see in having a delimited or
> >> encapsulated example is the ability to skip it if you already got it
> >> from the explanation prose.
> >
> > I disagree with this: sometimes you want to search for examples of a construct, and having it indexed can avoid scrolling and makes clear that there's a dedicated section. I tend to do that when programming and it's useful to have a dedicated section to jump in directly.
> > There are some short examples in the middle of the main prose, not worth a section on their own.
>
> This aligns with my thinking. There might be cases where the example can be
> made part of the prose but in general I think technical documentation is
> improved by having separate and indexable examples.
I think the problem is the lack of documentation guidelines, and it is
not clear how to set them.
Once you define a guideline, then, you have a rule to make the doc
adhere. Different parts of the documentation follow different rules,
which one is the best? No answer, only that one should be chosen to
give shape. Consistency is defined through rules, without rules, there
cannot be defined "a deviation", or an inconsistency.
Once there is mechanism of defining guidelines, then, which guidelines
to use can be discussed.
The lack of defined guidelines makes any attempt to "move" the
documentation in some direction to "drown". Every argument makes sense
under some guideline, then, they get confronted, and then, nothing
happens. So, the documentation "doesn't move", it seems to be frozen.
Defining such mechanism should be the priority.
> One benefit to having proper markup is that the code in the examples can be
> extracted and tested against the current codebase to ensure no example code has
> become incorrect.
In other threads, it has been stated that the examples do not
necessarily run, questions have been routed with that. That's another
guideline, which one should be followed? See the problem?
> --
> Daniel Gustafsson
>
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
2026-11-12 07:33 ` RE: Introductory docs-hacking task: Example markup Xavier Fischer <xavier_fischer@hotmail.fr>
2026-11-12 12:33 ` Re: Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-17 03:00 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
@ 2026-11-17 03:44 ` Vinay Manikanda <vinay.manikanda@gmail.com>
2 siblings, 0 replies; 12+ messages in thread
From: Vinay Manikanda @ 2026-11-17 03:44 UTC (permalink / raw)
To: Daniel Gustafsson <daniel@yesql.se>; +Cc: Xavier Fischer <xavier_fischer@hotmail.fr>; David G. Johnston <david.g.johnston@gmail.com>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>; Matemática A3K <matematica.a3k@gmail.com>
Hi Daniel and others,
> Here we use <example id=foo> to mark up the example and refer to the id
> attribute in the text (sometimes just right before the example itself
which
> seems of questionable use).
Thanks for pointing this out. I've removed all the instances of redundant
xref
paragraphs in the plpgsql-trigger documentation (Examples 41.3-41.8).
The changes eliminate the "shows an example of..." text that appeared
immediately before each `<example>` element, while keeping the examples
properly linkable via their `id` attributes.
Patch attached: fix-example-redundancy.patch
Thanks,
Vinay
On Mon, Nov 16, 2026 at 10:00 PM Matemática A3K <matematica.a3k@gmail.com>
wrote:
> On Thu, Nov 12, 2026 at 9:33 AM Daniel Gustafsson <daniel@yesql.se> wrote:
> >
> > > On 12 Nov 2026, at 08:33, Xavier Fischer <xavier_fischer@hotmail.fr>
> wrote:
> > >
> > > On Wed, Nov 11, 2026 at 7:42 PM Matemática A3K <
> matematica.a3k@gmail.com<mailto:matematica.a3k@gmail.com>> wrote:
> > > On Wed, Nov 11, 2026 at 9:29 AM Daniel Gustafsson <daniel@yesql.se
> <mailto:daniel@yesql.se>> wrote:
> > >>
> > >> I will argue that no markup should be used for examples. The goal of
> > >> an example is to help readers understand a general functioning by
> > >> seeing a particular one. As such, they should be part of the prose
> > >> that explains the functioning, not an independent element to be
> > >> indexed. The only value I currently see in having a delimited or
> > >> encapsulated example is the ability to skip it if you already got it
> > >> from the explanation prose.
> > >
> > > I disagree with this: sometimes you want to search for examples of a
> construct, and having it indexed can avoid scrolling and makes clear that
> there's a dedicated section. I tend to do that when programming and it's
> useful to have a dedicated section to jump in directly.
> > > There are some short examples in the middle of the main prose, not
> worth a section on their own.
> >
> > This aligns with my thinking. There might be cases where the example
> can be
> > made part of the prose but in general I think technical documentation is
> > improved by having separate and indexable examples.
>
> I think the problem is the lack of documentation guidelines, and it is
> not clear how to set them.
>
> Once you define a guideline, then, you have a rule to make the doc
> adhere. Different parts of the documentation follow different rules,
> which one is the best? No answer, only that one should be chosen to
> give shape. Consistency is defined through rules, without rules, there
> cannot be defined "a deviation", or an inconsistency.
>
> Once there is mechanism of defining guidelines, then, which guidelines
> to use can be discussed.
>
> The lack of defined guidelines makes any attempt to "move" the
> documentation in some direction to "drown". Every argument makes sense
> under some guideline, then, they get confronted, and then, nothing
> happens. So, the documentation "doesn't move", it seems to be frozen.
>
> Defining such mechanism should be the priority.
>
> > One benefit to having proper markup is that the code in the examples can
> be
> > extracted and tested against the current codebase to ensure no example
> code has
> > become incorrect.
>
> In other threads, it has been stated that the examples do not
> necessarily run, questions have been routed with that. That's another
> guideline, which one should be followed? See the problem?
>
> > --
> > Daniel Gustafsson
> >
>
>
>
Attachments:
fix-example-redundancy.patch (application/octet-stream, 2.9K) download
diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml
index 561f6e50d63..6f77c0715e6 100644
--- a/doc/src/sgml/plpgsql.sgml
+++ b/doc/src/sgml/plpgsql.sgml
@@ -4307,11 +4307,6 @@ ASSERT <replaceable class="parameter">condition</replaceable> <optional> , <repl
triggers might still abort the entire operation by raising an error.
</para>
- <para>
- <xref linkend="plpgsql-trigger-example"/> shows an example of a
- trigger function in <application>PL/pgSQL</application>.
- </para>
-
<example id="plpgsql-trigger-example">
<title>A <application>PL/pgSQL</application> Trigger Function</title>
@@ -4361,8 +4356,6 @@ CREATE TRIGGER emp_stamp BEFORE INSERT OR UPDATE ON emp
Another way to log changes to a table involves creating a new table that
holds a row for each insert, update, or delete that occurs. This approach
can be thought of as auditing changes to a table.
- <xref linkend="plpgsql-trigger-audit-example"/> shows an example of an
- audit trigger function in <application>PL/pgSQL</application>.
</para>
<example id="plpgsql-trigger-audit-example">
@@ -4418,8 +4411,6 @@ AFTER INSERT OR UPDATE OR DELETE ON emp
approach still records the full audit trail of changes to the table,
but also presents a simplified view of the audit trail, showing just
the last modified timestamp derived from the audit trail for each entry.
- <xref linkend="plpgsql-view-trigger-audit-example"/> shows an example
- of an audit trigger on a view in <application>PL/pgSQL</application>.
</para>
<example id="plpgsql-view-trigger-audit-example">
@@ -4498,9 +4489,6 @@ INSTEAD OF INSERT OR UPDATE OR DELETE ON emp_view
times.
This technique is commonly used in Data Warehousing, where the tables
of measured or observed data (called fact tables) might be extremely large.
- <xref linkend="plpgsql-trigger-summary-example"/> shows an example of a
- trigger function in <application>PL/pgSQL</application> that maintains
- a summary table for a fact table in a data warehouse.
</para>
@@ -4652,7 +4640,6 @@ SELECT * FROM sales_summary_bytime;
statement. The <command>CREATE TRIGGER</command> command assigns names to one
or both transition tables, and then the function can refer to those names
as though they were read-only temporary tables.
- <xref linkend="plpgsql-trigger-audit-transition-example"/> shows an example.
</para>
<example id="plpgsql-trigger-audit-transition-example">
@@ -4760,12 +4747,7 @@ CREATE TRIGGER emp_audit_del
</variablelist>
</para>
- <para>
- <xref linkend="plpgsql-event-trigger-example"/> shows an example of an
- event trigger function in <application>PL/pgSQL</application>.
- </para>
-
- <example id="plpgsql-event-trigger-example">
+ <example id="plpgsql-event-trigger-example">
<title>A <application>PL/pgSQL</application> Event Trigger Function</title>
<para>
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
2026-11-12 07:33 ` RE: Introductory docs-hacking task: Example markup Xavier Fischer <xavier_fischer@hotmail.fr>
2026-11-12 12:33 ` Re: Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-17 03:00 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
@ 2026-11-17 05:20 ` David G. Johnston <david.g.johnston@gmail.com>
2026-11-17 09:28 ` Re: Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-19 04:04 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2 siblings, 2 replies; 12+ messages in thread
From: David G. Johnston @ 2026-11-17 05:20 UTC (permalink / raw)
To: Matemática A3K <matematica.a3k@gmail.com>; +Cc: Daniel Gustafsson <daniel@yesql.se>; Xavier Fischer <xavier_fischer@hotmail.fr>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>
On Mon, Nov 16, 2026 at 8:00 PM Matemática A3K <matematica.a3k@gmail.com>
wrote:
> Defining such mechanism should be the priority.
>
I agree that the lack of these guidelines adds a decent amount of friction.
But the project itself has basically zero priorities and this one item
isn't going to make such a list come into existence.
To a large extent what the docs do today is the guideline, if you want
evidence to back a position that is where it will be found.
A decent number of such potential guidelines have been mentioned in the
past, but getting them actually committed right now hasn't been attempted
by anyone, for whatever their personal reasons. Sticking an agent on the
mailing list archives looking for such - my participation in a thread
should narrow the surface area quite a bit though I don't know how big the
false negative set would be - would be a fruitful way to start such an
endeavor. Its on my own todo list but down quite a ways in priority.
David J.
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
2026-11-12 07:33 ` RE: Introductory docs-hacking task: Example markup Xavier Fischer <xavier_fischer@hotmail.fr>
2026-11-12 12:33 ` Re: Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-17 03:00 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-17 05:20 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
@ 2026-11-17 09:28 ` Daniel Gustafsson <daniel@yesql.se>
1 sibling, 0 replies; 12+ messages in thread
From: Daniel Gustafsson @ 2026-11-17 09:28 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: Matemática A3K <matematica.a3k@gmail.com>; Xavier Fischer <xavier_fischer@hotmail.fr>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>
> On 17 Nov 2026, at 06:20, David G. Johnston <david.g.johnston@gmail.com> wrote:
> But the project itself has basically zero priorities
I respectfully disagree with this statement, but that's beside the discussion
at hand.
> and this one item isn't going to make such a list come into existence.
>
> To a large extent what the docs do today is the guideline, if you want evidence to back a position that is where it will be found.
If anyone is interested in pursuing a set of guidelines for the documentation
(which for sure would be useful) I would argue that a good place to start would
be to document the consistent markup we have, and go from there. An excercise
like that will serve to identify where we are consistent and where we can
improve. The current Style Guide covers a pretty slim portion of the docs.
--
Daniel Gustafsson
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
2026-11-12 07:33 ` RE: Introductory docs-hacking task: Example markup Xavier Fischer <xavier_fischer@hotmail.fr>
2026-11-12 12:33 ` Re: Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-17 03:00 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-17 05:20 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
@ 2026-11-19 04:04 ` Matemática A3K <matematica.a3k@gmail.com>
2026-11-19 07:18 ` Re: Introductory docs-hacking task: Example markup Laurenz Albe <laurenz.albe@cybertec.at>
1 sibling, 1 reply; 12+ messages in thread
From: Matemática A3K @ 2026-11-19 04:04 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: Daniel Gustafsson <daniel@yesql.se>; Xavier Fischer <xavier_fischer@hotmail.fr>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>
> A decent number of such potential guidelines have been mentioned in the past, but getting them actually committed right now hasn't been attempted by anyone, for whatever their personal reasons. Sticking an agent on the mailing list archives looking for such - my participation in a thread should narrow the surface area quite a bit though I don't know how big the false negative set would be - would be a fruitful way to start such an endeavor. Its on my own todo list but down quite a ways in priority.
TADA! https://pastebin.com/FTQ7jXj0
I think that from it, something can be extracted. Then a page
"Documentation Guidelines" can be constructed. Something like:
Conventions are largely oral tradition and enforced in review. To
streamline the process, have the following criteria in mind when
writing new documentation and submitting changes for it:
- ..
- The documentation source uses a distinctive style with single-space
indentation, with lines wrapping around 80 characters.
- American English spelling (e.g., "behavior", "initialize")
- Examples should be runnable
- ...
I was thinking in opening a wiki page where this can be worked on, I
see there are some pages related that require login to access, and
once logged in, I don't have permissions to create it.
Can you (or anyone) create a "Documentation_Guidelines" page - or
similar - for this?
> David J.
Also, it provides "reflections" on the markup being used - which is in
the direction of what Daniel was talking about
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
2026-11-12 07:33 ` RE: Introductory docs-hacking task: Example markup Xavier Fischer <xavier_fischer@hotmail.fr>
2026-11-12 12:33 ` Re: Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-17 03:00 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-17 05:20 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
2026-11-19 04:04 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
@ 2026-11-19 07:18 ` Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 0 replies; 12+ messages in thread
From: Laurenz Albe @ 2026-11-19 07:18 UTC (permalink / raw)
To: Matemática A3K <matematica.a3k@gmail.com>; David G. Johnston <david.g.johnston@gmail.com>; +Cc: Daniel Gustafsson <daniel@yesql.se>; Xavier Fischer <xavier_fischer@hotmail.fr>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>
On Thu, 2026-11-19 at 01:04 -0300, Matemática A3K wrote:
> Can you (or anyone) create a "Documentation_Guidelines" page - or
> similar - for this?
Here you are: https://wiki.postgresql.org/wiki/Documentation_Guidelines
I added links to all the information out there that I am aware of.
Yours,
Laurenz Albe
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Introductory docs-hacking task: Example markup
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` Re: Introductory docs-hacking task: Example markup David G. Johnston <david.g.johnston@gmail.com>
2026-11-12 07:33 ` RE: Introductory docs-hacking task: Example markup Xavier Fischer <xavier_fischer@hotmail.fr>
2026-11-12 12:33 ` Re: Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-17 03:00 ` Re: Introductory docs-hacking task: Example markup Matemática A3K <matematica.a3k@gmail.com>
@ 2026-11-17 09:35 ` Daniel Gustafsson <daniel@yesql.se>
2 siblings, 0 replies; 12+ messages in thread
From: Daniel Gustafsson @ 2026-11-17 09:35 UTC (permalink / raw)
To: Matemática A3K <matematica.a3k@gmail.com>; +Cc: Xavier Fischer <xavier_fischer@hotmail.fr>; David G. Johnston <david.g.johnston@gmail.com>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>
> On 17 Nov 2026, at 04:00, Matemática A3K <matematica.a3k@gmail.com> wrote:
> In other threads, it has been stated that the examples do not
> necessarily run, questions have been routed with that.
They will typically run (though I'm sure we have those that don't), but they
are not guaranteed to be complete examples. That's an important distinction
IMO, the syntax should be correct but an example might not list every partition
for a partition hierarchy for example. In such cases we could add what's
missing as a comment.
> That's another guideline, which one should be followed? See the problem?
I don't see a problem. I was merely trying to point out one potential upside
of rich markup, though perhaps this was an ill-chosen example.
--
Daniel Gustafsson
^ permalink raw reply [nested|flat] 12+ messages in thread
end of thread, other threads:[~2026-11-19 07:18 UTC | newest]
Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 12:29 Introductory docs-hacking task: Example markup Daniel Gustafsson <daniel@yesql.se>
2026-11-12 02:41 ` Matemática A3K <matematica.a3k@gmail.com>
2026-11-12 02:56 ` David G. Johnston <david.g.johnston@gmail.com>
2026-11-12 07:33 ` Xavier Fischer <xavier_fischer@hotmail.fr>
2026-11-12 12:33 ` Daniel Gustafsson <daniel@yesql.se>
2026-11-17 03:00 ` Matemática A3K <matematica.a3k@gmail.com>
2026-11-17 03:44 ` Vinay Manikanda <vinay.manikanda@gmail.com>
2026-11-17 05:20 ` David G. Johnston <david.g.johnston@gmail.com>
2026-11-17 09:28 ` Daniel Gustafsson <daniel@yesql.se>
2026-11-19 04:04 ` Matemática A3K <matematica.a3k@gmail.com>
2026-11-19 07:18 ` Laurenz Albe <laurenz.albe@cybertec.at>
2026-11-17 09:35 ` Daniel Gustafsson <daniel@yesql.se>
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