Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 256f6ba

Browse files
committed
Documentation spell checking and markup improvements
1 parent 30b5ede commit 256f6ba

30 files changed

+109
-109
lines changed

doc/src/sgml/config.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ include 'filename'
223223
<secondary>in configuration file</secondary>
224224
</indexterm>
225225
The <filename>postgresql.conf</> file can also contain
226-
<firstterm>include_dir directives</>, which specify an entire directory
226+
<literal>include_dir</literal> directives, which specify an entire directory
227227
of configuration files to include. It is used similarly:
228228
<programlisting>
229229
include_dir 'directory'
@@ -234,7 +234,7 @@ include 'filename'
234234
names end with the suffix <literal>.conf</literal> will be included. File
235235
names that start with the <literal>.</literal> character are also excluded,
236236
to prevent mistakes as they are hidden on some platforms. Multiple files
237-
within an include directory are processed in filename order. The filenames
237+
within an include directory are processed in file name order. The file names
238238
are ordered by C locale rules, ie. numbers before letters, and uppercase
239239
letters before lowercase ones.
240240
</para>
@@ -1211,7 +1211,7 @@ include 'filename'
12111211
Specifies the maximum amount of disk space that a session can use
12121212
for temporary files, such as sort and hash temporary files, or the
12131213
storage file for a held cursor. A transaction attempting to exceed
1214-
this limit will be cancelled.
1214+
this limit will be canceled.
12151215
The value is specified in kilobytes, and <literal>-1</> (the
12161216
default) means no limit.
12171217
Only superusers can change this setting.
@@ -3358,7 +3358,7 @@ local0.* /var/log/postgresql
33583358
<para>
33593359
When <varname>logging_collector</varname> is enabled,
33603360
this parameter sets the file names of the created log files. The value
3361-
is treated as a <systemitem>strftime</systemitem> pattern,
3361+
is treated as a <function>strftime</function> pattern,
33623362
so <literal>%</literal>-escapes can be used to specify time-varying
33633363
file names. (Note that if there are
33643364
any time-zone-dependent <literal>%</literal>-escapes, the computation

doc/src/sgml/datatype.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4098,7 +4098,7 @@ SET xmloption TO { DOCUMENT | CONTENT };
40984098
representations of XML values, such as in the above examples.
40994099
This would ordinarily mean that encoding declarations contained in
41004100
XML data can become invalid as the character data is converted
4101-
to other encodings while travelling between client and server,
4101+
to other encodings while traveling between client and server,
41024102
because the embedded encoding declaration is not changed. To cope
41034103
with this behavior, encoding declarations contained in
41044104
character strings presented for input to the <type>xml</type> type

doc/src/sgml/fdwhandler.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ ExecForeignInsert (EState *estate,
450450
query has a <literal>RETURNING</> clause. Hence, the FDW could choose
451451
to optimize away returning some or all columns depending on the contents
452452
of the <literal>RETURNING</> clause. However, some slot must be
453-
returned to indicate success, or the query's reported rowcount will be
453+
returned to indicate success, or the query's reported row count will be
454454
wrong.
455455
</para>
456456

@@ -495,7 +495,7 @@ ExecForeignUpdate (EState *estate,
495495
query has a <literal>RETURNING</> clause. Hence, the FDW could choose
496496
to optimize away returning some or all columns depending on the contents
497497
of the <literal>RETURNING</> clause. However, some slot must be
498-
returned to indicate success, or the query's reported rowcount will be
498+
returned to indicate success, or the query's reported row count will be
499499
wrong.
500500
</para>
501501

@@ -538,7 +538,7 @@ ExecForeignDelete (EState *estate,
538538
query has a <literal>RETURNING</> clause. Hence, the FDW could choose
539539
to optimize away returning some or all columns depending on the contents
540540
of the <literal>RETURNING</> clause. However, some slot must be
541-
returned to indicate success, or the query's reported rowcount will be
541+
returned to indicate success, or the query's reported row count will be
542542
wrong.
543543
</para>
544544

doc/src/sgml/func.sgml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9928,7 +9928,7 @@ table2-mapping
99289928
</indexterm>
99299929
<literal>array_to_json(anyarray [, pretty_bool])</literal>
99309930
</entry>
9931-
<entry>json</entry>
9931+
<entry><type>json</type></entry>
99329932
<entry>
99339933
Returns the array as JSON. A PostgreSQL multidimensional array
99349934
becomes a JSON array of arrays. Line feeds will be added between
@@ -9944,7 +9944,7 @@ table2-mapping
99449944
</indexterm>
99459945
<literal>row_to_json(record [, pretty_bool])</literal>
99469946
</entry>
9947-
<entry>json</entry>
9947+
<entry><type>json</type></entry>
99489948
<entry>
99499949
Returns the row as JSON. Line feeds will be added between level
99509950
1 elements if <parameter>pretty_bool</parameter> is true.
@@ -9959,12 +9959,12 @@ table2-mapping
99599959
</indexterm>
99609960
<literal>to_json(anyelement)</literal>
99619961
</entry>
9962-
<entry>json</entry>
9962+
<entry><type>json</type></entry>
99639963
<entry>
9964-
Returns the value as JSON. If the data type is not builtin, and there
9965-
is a cast from the type to json, the cast function will be used to
9964+
Returns the value as JSON. If the data type is not built in, and there
9965+
is a cast from the type to <type>json</type>, the cast function will be used to
99669966
perform the conversion. Otherwise, for any value other than a number,
9967-
a boolean or NULL, the text representation will be used, escaped and
9967+
a Boolean, or a null value, the text representation will be used, escaped and
99689968
quoted so that it is legal JSON.
99699969
</entry>
99709970
<entry><literal>to_json('Fred said "Hi."'::text)</literal></entry>
@@ -9977,9 +9977,9 @@ table2-mapping
99779977
</indexterm>
99789978
<literal>json_array_length(json)</literal>
99799979
</entry>
9980-
<entry>int</entry>
9980+
<entry><type>int</type></entry>
99819981
<entry>
9982-
Returns the number of elements in the outermost json array.
9982+
Returns the number of elements in the outermost JSON array.
99839983
</entry>
99849984
<entry><literal>json_array_length('[1,2,3,{"f1":1,"f2":[5,6]},4]')</literal></entry>
99859985
<entry><literal>5</literal></entry>
@@ -9991,9 +9991,9 @@ table2-mapping
99919991
</indexterm>
99929992
<literal>json_each(json)</literal>
99939993
</entry>
9994-
<entry>SETOF key text, value json</entry>
9994+
<entry><type>SETOF key text, value json</type></entry>
99959995
<entry>
9996-
Expands the outermost json object into a set of key/value pairs.
9996+
Expands the outermost JSON object into a set of key/value pairs.
99979997
</entry>
99989998
<entry><literal>select * from json_each('{"a":"foo", "b":"bar"}')</literal></entry>
99999999
<entry>
@@ -10012,9 +10012,9 @@ table2-mapping
1001210012
</indexterm>
1001310013
<literal>json_each_text(from_json json)</literal>
1001410014
</entry>
10015-
<entry>SETOF key text, value text</entry>
10015+
<entry><type>SETOF key text, value text</type></entry>
1001610016
<entry>
10017-
Expands the outermost json object into a set of key/value pairs. The
10017+
Expands the outermost JSON object into a set of key/value pairs. The
1001810018
returned value will be of type text.
1001910019
</entry>
1002010020
<entry><literal>select * from json_each_text('{"a":"foo", "b":"bar"}')</literal></entry>
@@ -10034,9 +10034,9 @@ table2-mapping
1003410034
</indexterm>
1003510035
<literal>json_extract_path(from_json json, VARIADIC path_elems text[])</literal>
1003610036
</entry>
10037-
<entry>json</entry>
10037+
<entry><type>json</type></entry>
1003810038
<entry>
10039-
Returns json object pointed to by <parameter>path_elems</parameter>.
10039+
Returns JSON object pointed to by <parameter>path_elems</parameter>.
1004010040
</entry>
1004110041
<entry><literal>json_extract_path('{"f2":{"f3":1},"f4":{"f5":99,"f6":"foo"}}','f4')</literal></entry>
1004210042
<entry><literal>{"f5":99,"f6":"foo"}</literal></entry>
@@ -10048,9 +10048,9 @@ table2-mapping
1004810048
</indexterm>
1004910049
<literal>json_extract_path_text(from_json json, VARIADIC path_elems text[])</literal>
1005010050
</entry>
10051-
<entry>text</entry>
10051+
<entry><type>text</type></entry>
1005210052
<entry>
10053-
Returns json object pointed to by <parameter>path_elems</parameter>.
10053+
Returns JSON object pointed to by <parameter>path_elems</parameter>.
1005410054
</entry>
1005510055
<entry><literal>json_extract_path_text('{"f2":{"f3":1},"f4":{"f5":99,"f6":"foo"}}','f4', 'f6')</literal></entry>
1005610056
<entry><literal>foo</literal></entry>
@@ -10062,9 +10062,9 @@ table2-mapping
1006210062
</indexterm>
1006310063
<literal>json_object_keys(json)</literal>
1006410064
</entry>
10065-
<entry>SETOF text</entry>
10065+
<entry><type>SETOF text</type></entry>
1006610066
<entry>
10067-
Returns set of keys in the json object. Only the "outer" object will be displayed.
10067+
Returns set of keys in the JSON object. Only the <quote>outer</quote> object will be displayed.
1006810068
</entry>
1006910069
<entry><literal>json_object_keys('{"f1":"abc","f2":{"f3":"a", "f4":"b"}}')</literal></entry>
1007010070
<entry>
@@ -10083,11 +10083,11 @@ table2-mapping
1008310083
</indexterm>
1008410084
<literal>json_populate_record(base anyelement, from_json json, [, use_json_as_text bool=false]</literal>
1008510085
</entry>
10086-
<entry>anyelement</entry>
10086+
<entry><type>anyelement</type></entry>
1008710087
<entry>
10088-
Expands the object in from_json to a row whose columns match
10088+
Expands the object in <replaceable>from_json</replaceable> to a row whose columns match
1008910089
the record type defined by base. Conversion will be best
10090-
effort; columns in base with no corresponding key in from_json
10090+
effort; columns in base with no corresponding key in <replaceable>from_json</replaceable>
1009110091
will be left null. A column may only be specified once.
1009210092
</entry>
1009310093
<entry><literal>select * from json_populate_record(null::x, '{"a":1,"b":2}')</literal></entry>
@@ -10106,12 +10106,12 @@ table2-mapping
1010610106
</indexterm>
1010710107
<literal>json_populate_recordset(base anyelement, from_json json, [, use_json_as_text bool=false]</literal>
1010810108
</entry>
10109-
<entry>SETOF anyelement</entry>
10109+
<entry><type>SETOF anyelement</type></entry>
1011010110
<entry>
10111-
Expands the outermost set of objects in from_json to a set
10111+
Expands the outermost set of objects in <replaceable>from_json</replaceable> to a set
1011210112
whose columns match the record type defined by base.
1011310113
Conversion will be best effort; columns in base with no
10114-
corresponding key in from_json will be left null. A column
10114+
corresponding key in <replaceable>from_json</replaceable> will be left null. A column
1011510115
may only be specified once.
1011610116
</entry>
1011710117
<entry><literal>select * from json_populate_recordset(null::x, '[{"a":1,"b":2},{"a":3,"b":4}]')</literal></entry>
@@ -10131,9 +10131,9 @@ table2-mapping
1013110131
</indexterm>
1013210132
<literal>json_array_elements(json)</literal>
1013310133
</entry>
10134-
<entry>SETOF json</entry>
10134+
<entry><type>SETOF json</type></entry>
1013510135
<entry>
10136-
Expands a json array to a set of json elements.
10136+
Expands a JSON array to a set of JSON elements.
1013710137
</entry>
1013810138
<entry><literal>json_array_elements('[1,true, [2,false]]')</literal></entry>
1013910139
<entry>
@@ -10152,16 +10152,16 @@ table2-mapping
1015210152

1015310153
<note>
1015410154
<para>
10155-
The <xref linkend="hstore"> extension has a cast from hstore to
10156-
json, so that converted hstore values are represented as json objects,
10155+
The <xref linkend="hstore"> extension has a cast from <type>hstore</type> to
10156+
<type>json</type>, so that converted <type>hstore</type> values are represented as JSON objects,
1015710157
not as string values.
1015810158
</para>
1015910159
</note>
1016010160

1016110161
<para>
1016210162
See also <xref linkend="functions-aggregate"> about the aggregate
1016310163
function <function>json_agg</function> which aggregates record
10164-
values as json efficiently.
10164+
values as JSON efficiently.
1016510165
</para>
1016610166
</sect1>
1016710167

@@ -11546,7 +11546,7 @@ SELECT NULLIF(value, '(none)') ...
1154611546
<entry>
1154711547
<type>json</type>
1154811548
</entry>
11549-
<entry>aggregates records as a json array of objects</entry>
11549+
<entry>aggregates records as a JSON array of objects</entry>
1155011550
</row>
1155111551

1155211552
<row>
@@ -14904,7 +14904,7 @@ SELECT set_config('log_statement_stats', 'off', false);
1490414904
</sect2>
1490514905

1490614906
<sect2 id="functions-admin-signal">
14907-
<title>Server Signalling Functions</title>
14907+
<title>Server Signaling Functions</title>
1490814908

1490914909
<indexterm>
1491014910
<primary>pg_cancel_backend</primary>
@@ -14932,7 +14932,7 @@ SELECT set_config('log_statement_stats', 'off', false);
1493214932
</para>
1493314933

1493414934
<table id="functions-admin-signal-table">
14935-
<title>Server Signalling Functions</title>
14935+
<title>Server Signaling Functions</title>
1493614936
<tgroup cols="3">
1493714937
<thead>
1493814938
<row><entry>Name</entry> <entry>Return Type</entry> <entry>Description</entry>

doc/src/sgml/gin.sgml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
Returns a palloc'd array of keys given an item to be indexed. The
106106
number of returned keys must be stored into <literal>*nkeys</>.
107107
If any of the keys can be null, also palloc an array of
108-
<literal>*nkeys</> booleans, store its address at
108+
<literal>*nkeys</> <type>bool</type> fields, store its address at
109109
<literal>*nullFlags</>, and set these null flags as needed.
110110
<literal>*nullFlags</> can be left <symbol>NULL</symbol> (its initial value)
111111
if all keys are non-null.
@@ -130,11 +130,11 @@
130130
<literal>query</> and the method it should use to extract key values.
131131
The number of returned keys must be stored into <literal>*nkeys</>.
132132
If any of the keys can be null, also palloc an array of
133-
<literal>*nkeys</> booleans, store its address at
133+
<literal>*nkeys</> <type>bool</type> fields, store its address at
134134
<literal>*nullFlags</>, and set these null flags as needed.
135-
<literal>*nullFlags</> can be left NULL (its initial value)
135+
<literal>*nullFlags</> can be left <symbol>NULL</symbol> (its initial value)
136136
if all keys are non-null.
137-
The return value can be NULL if the <literal>query</> contains no keys.
137+
The return value can be <symbol>NULL</symbol> if the <literal>query</> contains no keys.
138138
</para>
139139

140140
<para>
@@ -168,8 +168,8 @@
168168
an array of <literal>*nkeys</> booleans and store its address at
169169
<literal>*pmatch</>. Each element of the array should be set to TRUE
170170
if the corresponding key requires partial match, FALSE if not.
171-
If <literal>*pmatch</> is set to NULL then GIN assumes partial match
172-
is not required. The variable is initialized to NULL before call,
171+
If <literal>*pmatch</> is set to <symbol>NULL</symbol> then GIN assumes partial match
172+
is not required. The variable is initialized to <symbol>NULL</symbol> before call,
173173
so this argument can simply be ignored by operator classes that do
174174
not support partial match.
175175
</para>
@@ -181,7 +181,7 @@
181181
To use it, <function>extractQuery</> must allocate
182182
an array of <literal>*nkeys</> Pointers and store its address at
183183
<literal>*extra_data</>, then store whatever it wants to into the
184-
individual pointers. The variable is initialized to NULL before
184+
individual pointers. The variable is initialized to <symbol>NULL</symbol> before
185185
call, so this argument can simply be ignored by operator classes that
186186
do not require extra data. If <literal>*extra_data</> is set, the
187187
whole array is passed to the <function>consistent</> method, and
@@ -215,7 +215,7 @@
215215
and so are the <literal>queryKeys[]</> and <literal>nullFlags[]</>
216216
arrays previously returned by <function>extractQuery</>.
217217
<literal>extra_data</> is the extra-data array returned by
218-
<function>extractQuery</>, or NULL if none.
218+
<function>extractQuery</>, or <symbol>NULL</symbol> if none.
219219
</para>
220220

221221
<para>
@@ -261,7 +261,7 @@
261261
that generated the partial match query is provided, in case its
262262
semantics are needed to determine when to end the scan. Also,
263263
<literal>extra_data</> is the corresponding element of the extra-data
264-
array made by <function>extractQuery</>, or NULL if none.
264+
array made by <function>extractQuery</>, or <symbol>NULL</symbol> if none.
265265
Null keys are never passed to this function.
266266
</para>
267267
</listitem>
@@ -305,9 +305,9 @@
305305
</para>
306306

307307
<para>
308-
As of <productname>PostgreSQL</productname> 9.1, NULL key values can be
309-
included in the index. Also, placeholder NULLs are included in the index
310-
for indexed items that are NULL or contain no keys according to
308+
As of <productname>PostgreSQL</productname> 9.1, null key values can be
309+
included in the index. Also, placeholder nulls are included in the index
310+
for indexed items that are null or contain no keys according to
311311
<function>extractValue</>. This allows searches that should find empty
312312
items to do so.
313313
</para>
@@ -471,11 +471,11 @@
471471

472472
<para>
473473
<acronym>GIN</acronym> assumes that indexable operators are strict. This
474-
means that <function>extractValue</> will not be called at all on a NULL
474+
means that <function>extractValue</> will not be called at all on a null
475475
item value (instead, a placeholder index entry is created automatically),
476-
and <function>extractQuery</function> will not be called on a NULL query
476+
and <function>extractQuery</function> will not be called on a null query
477477
value either (instead, the query is presumed to be unsatisfiable). Note
478-
however that NULL key values contained within a non-null composite item
478+
however that null key values contained within a non-null composite item
479479
or query value are supported.
480480
</para>
481481
</sect1>

doc/src/sgml/hstore.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,15 +325,15 @@ b
325325
<row>
326326
<entry><function>hstore_to_json(hstore)</function></entry>
327327
<entry><type>json</type></entry>
328-
<entry>get <type>hstore</type> as a json value</entry>
328+
<entry>get <type>hstore</type> as a <type>json</type> value</entry>
329329
<entry><literal>hstore_to_json('"a key"=&gt;1, b=&gt;t, c=&gt;null, d=&gt;12345, e=&gt;012345, f=&gt;1.234, g=&gt;2.345e+4')</literal></entry>
330330
<entry><literal>{"a key": "1", "b": "t", "c": null, "d": "12345", "e": "012345", "f": "1.234", "g": "2.345e+4"}</literal></entry>
331331
</row>
332332

333333
<row>
334334
<entry><function>hstore_to_json_loose(hstore)</function></entry>
335335
<entry><type>json</type></entry>
336-
<entry>get <type>hstore</type> as a json value, but attempting to distinguish numerical and boolean values so they are unquoted in the json</entry>
336+
<entry>get <type>hstore</type> as a <type>json</type> value, but attempting to distinguish numerical and Boolean values so they are unquoted in the JSON</entry>
337337
<entry><literal>hstore_to_json_loose('"a key"=&gt;1, b=&gt;t, c=&gt;null, d=&gt;12345, e=&gt;012345, f=&gt;1.234, g=&gt;2.345e+4')</literal></entry>
338338
<entry><literal>{"a key": 1, "b": true, "c": null, "d": 12345, "e": "012345", "f": 1.234, "g": 2.345e+4}</literal></entry>
339339
</row>

doc/src/sgml/indexam.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@
113113
<structfield>amoptionalkey</structfield> false.
114114
One reason that an index AM might set
115115
<structfield>amoptionalkey</structfield> false is if it doesn't index
116-
NULLs. Since most indexable operators are
117-
strict and hence cannot return TRUE for NULL inputs,
116+
null values. Since most indexable operators are
117+
strict and hence cannot return true for null inputs,
118118
it is at first sight attractive to not store index entries for null values:
119119
they could never be returned by an index scan anyway. However, this
120120
argument fails when an index scan has no restriction clause for a given

doc/src/sgml/information_schema.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
information schema is defined in the SQL standard and can therefore
1414
be expected to be portable and remain stable &mdash; unlike the system
1515
catalogs, which are specific to
16-
<productname>PostgreSQL</productname> and are modelled after
16+
<productname>PostgreSQL</productname> and are modeled after
1717
implementation concerns. The information schema views do not,
1818
however, contain information about
1919
<productname>PostgreSQL</productname>-specific features; to inquire

0 commit comments

Comments
 (0)