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

Commit f3e1e66

Browse files
committed
Minor fixes in docs and error messages.
Alexander Lakhin Discussion: https://postgr.es/m/ce7debdd-c943-d7a7-9b41-687107b27831@gmail.com
1 parent 60df530 commit f3e1e66

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

doc/src/sgml/bgworker.sgml

+12-8
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,18 @@
3434
<productname>PostgreSQL</productname> is started by including the module name in
3535
<varname>shared_preload_libraries</varname>. A module wishing to run a background
3636
worker can register it by calling
37-
<function>RegisterBackgroundWorker(<type>BackgroundWorker *worker</type>)</function>
38-
from its <function>_PG_init()</function>. Background workers can also be started
39-
after the system is up and running by calling the function
40-
<function>RegisterDynamicBackgroundWorker(<type>BackgroundWorker
41-
*worker, BackgroundWorkerHandle **handle</type>)</function>. Unlike
42-
<function>RegisterBackgroundWorker</function>, which can only be called from within
43-
the postmaster, <function>RegisterDynamicBackgroundWorker</function> must be
44-
called from a regular backend or another background worker.
37+
<function>RegisterBackgroundWorker(<type>BackgroundWorker</type>
38+
*<parameter>worker</parameter>)</function>
39+
from its <function>_PG_init()</function> function.
40+
Background workers can also be started
41+
after the system is up and running by calling
42+
<function>RegisterDynamicBackgroundWorker(<type>BackgroundWorker</type>
43+
*<parameter>worker</parameter>, <type>BackgroundWorkerHandle</type>
44+
**<parameter>handle</parameter>)</function>. Unlike
45+
<function>RegisterBackgroundWorker</function>, which can only be called from
46+
within the postmaster process,
47+
<function>RegisterDynamicBackgroundWorker</function> must be called
48+
from a regular backend or another background worker.
4549
</para>
4650

4751
<para>

doc/src/sgml/btree.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
</listitem>
264264
</varlistentry>
265265
<varlistentry>
266-
<term><function>inrange</function></term>
266+
<term><function>in_range</function></term>
267267
<listitem>
268268
<indexterm>
269269
<primary>in_range support functions</primary>

doc/src/sgml/intarray.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@
453453
-- a message can be in one or more <quote>sections</quote>
454454
CREATE TABLE message (mid INT PRIMARY KEY, sections INT[], ...);
455455

456-
-- create specialized index with sigature length of 32 bytes
456+
-- create specialized index with signature length of 32 bytes
457457
CREATE INDEX message_rdtree_idx ON message USING GIST (sections gist__int_ops(siglen=32));
458458

459459
-- select messages in section 1 OR 2 - OVERLAP operator

src/backend/replication/backup_manifest.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ AddWALInfoToBackupManifest(backup_manifest_info *manifest, XLogRecPtr startptr,
272272
*/
273273
if (!found_start_timeline)
274274
ereport(ERROR,
275-
errmsg("start timeline %u not found history of timeline %u",
275+
errmsg("start timeline %u not found in history of timeline %u",
276276
starttli, endtli));
277277

278278
/* Terminate the list of WAL ranges. */

src/backend/utils/misc/guc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3140,7 +3140,7 @@ static struct config_int ConfigureNamesInt[] =
31403140
},
31413141
{
31423142
{"autovacuum_vacuum_insert_threshold", PGC_SIGHUP, AUTOVACUUM,
3143-
gettext_noop("Minimum number of tuple inserts prior to vacuum, or -1 to disable insert vacuums"),
3143+
gettext_noop("Minimum number of tuple inserts prior to vacuum, or -1 to disable insert vacuums."),
31443144
NULL
31453145
},
31463146
&autovacuum_vac_ins_thresh,

0 commit comments

Comments
 (0)