Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit86cc06d

Browse files
committed
table: docs: fix typos and grammar.
Author: Justin PryzbyDiscussion:https://postgr.es/m/20190404055138.GA24864@telsasoft.com
1 parent3e6b0c4 commit86cc06d

File tree

4 files changed

+33
-32
lines changed

4 files changed

+33
-32
lines changed

‎doc/src/sgml/catalogs.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@
587587
The catalog <structname>pg_am</structname> stores information about
588588
relation access methods. There is one row for each access method supported
589589
by the system.
590-
Currently, onlytable and indexes have access methods. The requirements for table
590+
Currently, onlytables and indexes have access methods. The requirements for table
591591
and index access methods are discussed in detail in <xref linkend="tableam"/> and
592592
<xref linkend="indexam"/> respectively.
593593
</para>

‎doc/src/sgml/ref/select_into.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ SELECT [ ALL | DISTINCT [ ON ( <replaceable class="parameter">expression</replac
106106
</para>
107107

108108
<para>
109-
In contrast to <command>CREATE TABLE AS</command> <command>SELECT
109+
In contrast to <command>CREATE TABLE AS</command>, <command>SELECT
110110
INTO</command> does not allow to specify properties like a table's access
111111
method with <xref linkend="sql-createtable-method" /> or the table's
112112
tablespace with <xref linkend="sql-createtable-tablespace" />. Use <xref
113-
linkend="sql-createtableas"/> if necessary. Therefore the default table
113+
linkend="sql-createtableas"/> if necessary. Therefore, the default table
114114
access method is chosen for the new table. See <xref
115115
linkend="guc-default-table-access-method"/> for more information.
116116
</para>

‎doc/src/sgml/storage.sgml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,11 @@ there.
189189
</para>
190190

191191
<para>
192-
Note that the following sections describe theway the builtin
192+
Note that the following sections describe thebehavior of the builtin
193193
<literal>heap</literal> <link linkend="tableam">table access method</link>,
194-
and the builtin <link linkend="indexam">index access methods</link> work. Due
195-
to the extensible nature of <productname>PostgreSQL</productname> other types
196-
ofaccessmethod might worksimilar or not.
194+
and the builtin <link linkend="indexam">index access methods</link>. Due
195+
to the extensible nature of <productname>PostgreSQL</productname>, other
196+
accessmethods might workdifferently.
197197
</para>
198198

199199
<para>
@@ -703,11 +703,11 @@ erased (they will be recreated automatically as needed).
703703
This section provides an overview of the page format used within
704704
<productname>PostgreSQL</productname> tables and indexes.<footnote>
705705
<para>
706-
Actually,neither table nor index access methods neednotuse this page
707-
format. All the existingindex methods do use this basic format, but the
708-
data kept on index metapages usually doesn't follow the item layout
709-
rules. The <literal>heap</literal> table access method also always uses
710-
this format.
706+
Actually,use of this page format isnotrequired for either table or
707+
indexaccessmethods. The <literal>heap</literal> table access method
708+
always uses this format. All the existing index methods also use the
709+
basic format, but the data kept on index metapages usually doesn't follow
710+
the item layout rules.
711711
</para>
712712
</footnote>
713713
Sequences and <acronym>TOAST</acronym> tables are formatted just like a regular table.

‎doc/src/sgml/tableam.sgml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,33 +48,33 @@
4848
callbacks and their behavior is defined in the
4949
<structname>TableAmRoutine</structname> structure (with comments inside the
5050
struct defining the requirements for callbacks). Most callbacks have
51-
wrapper functions, which are documentedfor the point of view of a user,
52-
rather than an implementor, of the table access method. For details,
51+
wrapper functions, which are documentedfrom the point of view of a user
52+
(rather than an implementor) of the table access method. For details,
5353
please refer to the <ulink url="https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/access/tableam.h;hb=HEAD">
5454
<filename>src/include/access/tableam.h</filename></ulink> file.
5555
</para>
5656

5757
<para>
58-
To implementa access method, an implementor will typically need to
59-
implementa AMspecific type of tuple table slot (see
58+
To implementan access method, an implementor will typically need to
59+
implementan AM-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">
61-
<filename>src/include/executor/tuptable.h</filename></ulink>) which allows
61+
<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
6363
to access the columns of the tuple.
6464
</para>
6565

6666
<para>
67-
Currently thetheway an AM actually stores data is fairly
68-
unconstrained. It is e.g. possibleto use postgres' shared buffer cache,
69-
but not required.In caseshared buffers areused, it likely makesto
70-
postgres' standard page layout described in <xref
71-
linkend="storage-page-layout"/>.
67+
Currently, the way an AM actually stores data is fairly unconstrained. For
68+
example, it's possible, but not required,to use postgres' shared buffer
69+
cache.In caseit isused, it likely makessense to use
70+
<productname>PostgreSQL</productname>'s standard page layoutasdescribed in
71+
<xreflinkend="storage-page-layout"/>.
7272
</para>
7373

7474
<para>
7575
One fairly large constraint of the table access method API is that,
7676
currently, if the AM wants to support modifications and/or indexes, it is
77-
necessarythat each tuplehas a tuple identifier (<acronym>TID</acronym>)
77+
necessaryfor each tupleto have a tuple identifier (<acronym>TID</acronym>)
7878
consisting of a block number and an item number (see also <xref
7979
linkend="storage-page-layout"/>). It is not strictly necessary that the
8080
sub-parts of <acronym>TIDs</acronym> have the same meaning they e.g. have
@@ -83,13 +83,14 @@
8383
</para>
8484

8585
<para>
86-
For crash safety an AM can use postgres' <link
87-
linkend="wal"><acronym>WAL</acronym></link>, or a custom approach can be
88-
implemented. If <acronym>WAL</acronym> is chosen, either <link
89-
linkend="generic-wal">Generic WAL Records</link> can be used &mdash; which
90-
implies higher WAL volume but is easy, or a new type of
91-
<acronym>WAL</acronym> records can be implemented &mdash; but that
92-
currently requires modifications of core code (namely modifying
86+
For crash safety, an AM can use postgres' <link
87+
linkend="wal"><acronym>WAL</acronym></link>, or a custom implementation.
88+
If <acronym>WAL</acronym> is chosen, either <link
89+
linkend="generic-wal">Generic WAL Records</link> can be used,
90+
or a new type of <acronym>WAL</acronym> records can be implemented.
91+
Generic WAL Records are easy, but imply higher WAL volume.
92+
Implementation of a new type of WAL record
93+
currently requires modifications to core code (specifically,
9394
<filename>src/include/access/rmgrlist.h</filename>).
9495
</para>
9596

@@ -103,8 +104,8 @@
103104
<para>
104105
Any developer of a new <literal>table access method</literal> can refer to
105106
the existing <literal>heap</literal> implementation present in
106-
<filename>src/backend/heap/heapam_handler.c</filename> formoredetails of
107-
how it is implemented.
107+
<filename>src/backend/heap/heapam_handler.c</filename> for details of
108+
its implementation.
108109
</para>
109110

110111
</chapter>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp