Skip to content

Commit 68387f9

Browse files
doc: Add acronym and glossary term for Access Method
AM was used throughout the documentation to denote Access Method, but the acronym was not described. This adds an acronym entry as well as a glossary term which the acronym links to. Each page which describe AMs have the first occurrence with <acronym> markup. Reported-by: alaa.attya91@gmail.com Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/169974408805.398198.6927340566912872957@wrigleys.postgresql.org
1 parent 4b4b346 commit 68387f9

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

doc/src/sgml/acronyms.sgml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99

1010
<variablelist>
1111

12+
<varlistentry>
13+
<term><acronym>AM</acronym></term>
14+
<listitem>
15+
<para>
16+
<link linkend="glossary-am">Access Method</link>
17+
</para>
18+
</listitem>
19+
</varlistentry>
20+
1221
<varlistentry>
1322
<term><acronym>ANSI</acronym></term>
1423
<listitem>

doc/src/sgml/btree.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
and understanding of sorting semantics. Therefore, they've acquired
2828
some features that go beyond what would be needed just to support btree
2929
indexes, and parts of the system that are quite distant from the
30-
btree AM make use of them.
30+
btree <acronym>AM</acronym> make use of them.
3131
</para>
3232

3333
</sect1>

doc/src/sgml/glossary.sgml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@
3939
</glossdef>
4040
</glossentry>
4141

42+
<glossentry id="glossary-am">
43+
<glossterm>Access Method</glossterm>
44+
<glossdef>
45+
<para>
46+
Interfaces which <productname>PostgreSQL</productname> use in order to
47+
access data in tables and indexes. This abstraction allows for adding
48+
support for new types of data storage.
49+
</para>
50+
<para>
51+
For more information, see <xref linkend="tableam" /> and
52+
<xref linkend="indexam" />.
53+
</para>
54+
</glossdef>
55+
</glossentry>
56+
4257
<glossentry>
4358
<glossterm>Analytic function</glossterm>
4459
<glosssee otherterm="glossary-window-function" />

doc/src/sgml/indexam.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ typedef struct IndexAmRoutine
215215
the first; however they are permitted to require some restriction to
216216
appear for the first index column, and this is signaled by setting
217217
<structfield>amoptionalkey</structfield> false.
218-
One reason that an index AM might set
218+
One reason that an index <acronym>AM</acronym> might set
219219
<structfield>amoptionalkey</structfield> false is if it doesn't index
220220
null values. Since most indexable operators are
221221
strict and hence cannot return true for null inputs,

doc/src/sgml/tableam.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
<para>
5858
To implement an access method, an implementor will typically need to
59-
implement an AM-specific type of tuple table slot (see
59+
implement an <acronym>AM</acronym>-specific type of tuple table slot (see
6060
<ulink url="https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/executor/tuptable.h;hb=HEAD">
6161
<filename>src/include/executor/tuptable.h</filename></ulink>), which allows
6262
code outside the access method to hold references to tuples of the AM, and

0 commit comments

Comments
 (0)