From f3e1e6619655bf219131d93ec85348cad75c7f12 Mon Sep 17 00:00:00 2001
From: Tom Lane
Date: Wed, 9 Sep 2020 11:53:39 -0400
Subject: Minor fixes in docs and error messages.
Alexander Lakhin
Discussion: https://postgr.es/m/ce7debdd-c943-d7a7-9b41-687107b27831@gmail.com
---
doc/src/sgml/bgworker.sgml | 20 ++++++++++++--------
doc/src/sgml/btree.sgml | 2 +-
doc/src/sgml/intarray.sgml | 2 +-
3 files changed, 14 insertions(+), 10 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/bgworker.sgml b/doc/src/sgml/bgworker.sgml
index 6e1cf121de0..7fd673ab54e 100644
--- a/doc/src/sgml/bgworker.sgml
+++ b/doc/src/sgml/bgworker.sgml
@@ -34,14 +34,18 @@
PostgreSQL is started by including the module name in
shared_preload_libraries. A module wishing to run a background
worker can register it by calling
- RegisterBackgroundWorker(BackgroundWorker *worker)
- from its _PG_init(). Background workers can also be started
- after the system is up and running by calling the function
- RegisterDynamicBackgroundWorker(BackgroundWorker
- *worker, BackgroundWorkerHandle **handle). Unlike
- RegisterBackgroundWorker, which can only be called from within
- the postmaster, RegisterDynamicBackgroundWorker must be
- called from a regular backend or another background worker.
+ RegisterBackgroundWorker(BackgroundWorker
+ *worker)
+ from its _PG_init() function.
+ Background workers can also be started
+ after the system is up and running by calling
+ RegisterDynamicBackgroundWorker(BackgroundWorker
+ *worker, BackgroundWorkerHandle
+ **handle). Unlike
+ RegisterBackgroundWorker, which can only be called from
+ within the postmaster process,
+ RegisterDynamicBackgroundWorker must be called
+ from a regular backend or another background worker.
diff --git a/doc/src/sgml/btree.sgml b/doc/src/sgml/btree.sgml
index 435b7cb24da..20cabe921fb 100644
--- a/doc/src/sgml/btree.sgml
+++ b/doc/src/sgml/btree.sgml
@@ -263,7 +263,7 @@
- inrange
+ in_range
in_range support functions
diff --git a/doc/src/sgml/intarray.sgml b/doc/src/sgml/intarray.sgml
index c8db87e97df..af44c7b2142 100644
--- a/doc/src/sgml/intarray.sgml
+++ b/doc/src/sgml/intarray.sgml
@@ -453,7 +453,7 @@
-- a message can be in one or more sections
CREATE TABLE message (mid INT PRIMARY KEY, sections INT[], ...);
--- create specialized index with sigature length of 32 bytes
+-- create specialized index with signature length of 32 bytes
CREATE INDEX message_rdtree_idx ON message USING GIST (sections gist__int_ops(siglen=32));
-- select messages in section 1 OR 2 - OVERLAP operator
--
cgit v1.2.3