Skip to content

Commit ca0c37b

Browse files
committed
docs: properly capitalize and space kB, MB, GB, TB
1 parent af33039 commit ca0c37b

File tree

13 files changed

+39
-39
lines changed

13 files changed

+39
-39
lines changed

doc/src/sgml/bloom.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ CREATE INDEX
177177
query. We could reduce that by specifying a larger signature length.
178178
In this example, creating the index with <literal>length=200</>
179179
reduced the number of false positives to 55; but it doubled the index size
180-
(to 306 MB) and ended up being slower for this query (125 ms overall).
180+
(to 306MB) and ended up being slower for this query (125 ms overall).
181181
</para>
182182

183183
<para>
@@ -202,7 +202,7 @@ CREATE INDEX
202202
</programlisting>
203203
Although this query runs much faster than with either of the single
204204
indexes, we pay a large penalty in index size. Each of the single-column
205-
btree indexes occupies 214 MB, so the total space needed is over 1.2GB,
205+
btree indexes occupies 214MB, so the total space needed is over 1.2GB,
206206
more than 8 times the space used by the bloom index.
207207
</para>
208208
</sect2>

doc/src/sgml/catalogs.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4021,7 +4021,7 @@
40214021
segments or <quote>pages</> small enough to be conveniently stored as rows
40224022
in <structname>pg_largeobject</structname>.
40234023
The amount of data per page is defined to be <symbol>LOBLKSIZE</> (which is currently
4024-
<literal>BLCKSZ/4</>, or typically 2 kB).
4024+
<literal>BLCKSZ/4</>, or typically 2kB).
40254025
</para>
40264026

40274027
<para>

doc/src/sgml/config.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@ include_dir 'conf.d'
19031903
cache, where performance might degrade. This setting may have no
19041904
effect on some platforms. The valid range is between
19051905
<literal>0</literal>, which disables controlled writeback, and
1906-
<literal>2MB</literal>. The default is <literal>512Kb</> on Linux,
1906+
<literal>2MB</literal>. The default is <literal>512kB</> on Linux,
19071907
<literal>0</> elsewhere. (Non-default values of
19081908
<symbol>BLCKSZ</symbol> change the default and maximum.)
19091909
This parameter can only be set in the <filename>postgresql.conf</>
@@ -2660,7 +2660,7 @@ include_dir 'conf.d'
26602660
than the OS's page cache, where performance might degrade. This
26612661
setting may have no effect on some platforms. The valid range is
26622662
between <literal>0</literal>, which disables controlled writeback,
2663-
and <literal>2MB</literal>. The default is <literal>256Kb</> on
2663+
and <literal>2MB</literal>. The default is <literal>256kB</> on
26642664
Linux, <literal>0</> elsewhere. (Non-default values of
26652665
<symbol>BLCKSZ</symbol> change the default and maximum.)
26662666
This parameter can only be set in the <filename>postgresql.conf</>
@@ -2702,7 +2702,7 @@ include_dir 'conf.d'
27022702
checkpoints. This is a soft limit; WAL size can exceed
27032703
<varname>max_wal_size</> under special circumstances, like
27042704
under heavy load, a failing <varname>archive_command</>, or a high
2705-
<varname>wal_keep_segments</> setting. The default is 1 GB.
2705+
<varname>wal_keep_segments</> setting. The default is 1GB.
27062706
Increasing this parameter can increase the amount of time needed for
27072707
crash recovery.
27082708
This parameter can only be set in the <filename>postgresql.conf</>
@@ -2723,7 +2723,7 @@ include_dir 'conf.d'
27232723
always recycled for future use at a checkpoint, rather than removed.
27242724
This can be used to ensure that enough WAL space is reserved to
27252725
handle spikes in WAL usage, for example when running large batch
2726-
jobs. The default is 80 MB.
2726+
jobs. The default is 80MB.
27272727
This parameter can only be set in the <filename>postgresql.conf</>
27282728
file or on the server command line.
27292729
</para>

doc/src/sgml/datatype.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ SELECT '52093.89'::money::numeric::float8;
11201120
the physical requirement on disk might be less. Very long values are also
11211121
stored in background tables so that they do not interfere with rapid
11221122
access to shorter column values. In any case, the longest
1123-
possible character string that can be stored is about 1 GB. (The
1123+
possible character string that can be stored is about 1GB. (The
11241124
maximum value that will be allowed for <replaceable>n</> in the data
11251125
type declaration is less than that. It wouldn't be useful to
11261126
change this because with multibyte character encodings the number of

doc/src/sgml/ecpg.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8165,7 +8165,7 @@ if (*(int2 *)sqldata->sqlvar[i].sqlind != 0)
81658165
<term><literal>sqlilongdata</></term>
81668166
<listitem>
81678167
<para>
8168-
It equals to <literal>sqldata</literal> if <literal>sqllen</literal> is larger than 32KB.
8168+
It equals to <literal>sqldata</literal> if <literal>sqllen</literal> is larger than 32kB.
81698169
</para>
81708170
</listitem>
81718171
</varlistentry>

doc/src/sgml/installation.sgml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,12 @@ su - postgres
326326

327327
<para>
328328
Also check that you have sufficient disk space. You will need about
329-
100 MB for the source tree during compilation and about 20 MB for
329+
100MB for the source tree during compilation and about 20MB for
330330
the installation directory. An empty database cluster takes about
331-
35 MB; databases take about five times the amount of space that a
331+
35MB; databases take about five times the amount of space that a
332332
flat text file with the same data would take. If you are going to
333333
run the regression tests you will temporarily need up to an extra
334-
150 MB. Use the <command>df</command> command to check free disk
334+
150MB. Use the <command>df</command> command to check free disk
335335
space.
336336
</para>
337337
</sect1>
@@ -2241,7 +2241,7 @@ createlang: language installation failed: ERROR: could not load library "/opt/d
22412241
createlang: language installation failed: ERROR: could not load library "/opt/dbs/pgsql748/lib/plperl.so": Bad address
22422242
</screen>
22432243
Another example is out of memory errors in the PostgreSQL server
2244-
logs, with every memory allocation near or greater than 256 MB
2244+
logs, with every memory allocation near or greater than 256MB
22452245
failing.
22462246
</para>
22472247

@@ -2250,8 +2250,8 @@ createlang: language installation failed: ERROR: could not load library "/opt/d
22502250
and memory model used by the server process. By default, all
22512251
binaries built on AIX are 32-bit. This does not depend upon
22522252
hardware type or kernel in use. These 32-bit processes are
2253-
limited to 4 GB of memory laid out in 256 MB segments using one
2254-
of a few models. The default allows for less than 256 MB in the
2253+
limited to 4GB of memory laid out in 256MB segments using one
2254+
of a few models. The default allows for less than 256MB in the
22552255
heap as it shares a single segment with the stack.
22562256
</para>
22572257

@@ -2282,7 +2282,7 @@ createlang: language installation failed: ERROR: could not load library "/opt/d
22822282
settings to find a configuration that works satisfactorily. This
22832283
use of <symbol>LDR_CNTRL</symbol> tells AIX that you want the
22842284
server to have <symbol>MAXDATA</symbol> bytes set aside for the
2285-
heap, allocated in 256 MB segments. When you find a workable
2285+
heap, allocated in 256MB segments. When you find a workable
22862286
configuration,
22872287
<command>ldedit</command> can be used to modify the binaries so
22882288
that they default to using the desired heap size. PostgreSQL can

doc/src/sgml/lobj.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
larger than a single database page into a secondary storage area per table.
5151
This makes the large object facility partially obsolete. One
5252
remaining advantage of the large object facility is that it allows values
53-
up to 4 TB in size, whereas <acronym>TOAST</acronym>ed fields can be at
54-
most 1 GB. Also, reading and updating portions of a large object can be
53+
up to 4TB in size, whereas <acronym>TOAST</acronym>ed fields can be at
54+
most 1GB. Also, reading and updating portions of a large object can be
5555
done efficiently, while most operations on a <acronym>TOAST</acronym>ed
5656
field will read or write the whole value as a unit.
5757
</para>

doc/src/sgml/ltree.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
A <firstterm>label path</firstterm> is a sequence of zero or more
3232
labels separated by dots, for example <literal>L1.L2.L3</>, representing
3333
a path from the root of a hierarchical tree to a particular node. The
34-
length of a label path must be less than 65Kb, but keeping it under 2Kb is
34+
length of a label path must be less than 65kB, but keeping it under 2kB is
3535
preferable. In practice this is not a major limitation; for example,
3636
the longest label path in the DMOZ catalog (<ulink
3737
url="http://www.dmoz.org"></ulink>) is about 240 bytes.

doc/src/sgml/protocol.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1973,7 +1973,7 @@ The commands accepted in walsender mode are:
19731973
Limit (throttle) the maximum amount of data transferred from server
19741974
to client per unit of time. The expected unit is kilobytes per second.
19751975
If this option is specified, the value must either be equal to zero
1976-
or it must fall within the range from 32 kB through 1 GB (inclusive).
1976+
or it must fall within the range from 32kB through 1GB (inclusive).
19771977
If zero is passed or the option is not specified, no restriction is
19781978
imposed on the transfer.
19791979
</para>

doc/src/sgml/runtime.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ option SEMMAP=256
968968
</term>
969969
<listitem>
970970
<para>
971-
The default maximum segment size is 32 MB, and the
971+
The default maximum segment size is 32MB, and the
972972
default maximum total size is 2097152
973973
pages. A page is almost always 4096 bytes except in unusual
974974
kernel configurations with <quote>huge pages</quote>
@@ -977,7 +977,7 @@ option SEMMAP=256
977977

978978
<para>
979979
The shared memory size settings can be changed via the
980-
<command>sysctl</command> interface. For example, to allow 16 GB:
980+
<command>sysctl</command> interface. For example, to allow 16GB:
981981
<screen>
982982
<prompt>$</prompt> <userinput>sysctl -w kernel.shmmax=17179869184</userinput>
983983
<prompt>$</prompt> <userinput>sysctl -w kernel.shmall=4194304</userinput>
@@ -1032,7 +1032,7 @@ kern.sysv.shmall=1024
10321032
</para>
10331033

10341034
<para>
1035-
<varname>SHMALL</> is measured in 4 kB pages on this platform.
1035+
<varname>SHMALL</> is measured in 4kB pages on this platform.
10361036
</para>
10371037

10381038
<para>
@@ -1075,7 +1075,7 @@ sysctl -w kern.sysv.shmall
10751075
</term>
10761076
<listitem>
10771077
<para>
1078-
In the default configuration, only 512 kB of shared memory per
1078+
In the default configuration, only 512kB of shared memory per
10791079
segment is allowed. To increase the setting, first change to the
10801080
directory <filename>/etc/conf/cf.d</>. To display the current value of
10811081
<varname>SHMMAX</>, run:
@@ -1180,7 +1180,7 @@ project.max-msg-ids=(priv,4096,deny)
11801180
<listitem>
11811181
<para>
11821182
On <productname>UnixWare</> 7, the maximum size for shared
1183-
memory segments is 512 kB in the default configuration.
1183+
memory segments is 512kB in the default configuration.
11841184
To display the current value of <varname>SHMMAX</>, run:
11851185
<programlisting>
11861186
/etc/conf/bin/idtune -g SHMMAX

0 commit comments

Comments
 (0)