]> granicus.if.org Git - postgresql/commitdiff
Assorted minor doc/comment fixes.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Apr 2018 15:46:15 +0000 (11:46 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Apr 2018 15:46:15 +0000 (11:46 -0400)
Identify pg_replication_origin as a shared catalog in catalogs.sgml,
using the same boilerplate wording used for most other shared catalogs
(and tweak another place where someone had randomly deviated from
that boilerplate).

Make an example in mmgr/README more consistent with surrounding text.

Update an obsolete cross-reference in a comment in storage/block.h.

Zhuo Ql

Discussion: https://postgr.es/m/44296255.1819230.1524889719001@mail.yahoo.com

doc/src/sgml/catalogs.sgml
src/backend/utils/mmgr/README
src/include/storage/block.h

index 14aeed307638bfb27cfefc7aa9689a89b1bdb6c5..26984b6cba19dc83fa5cda671b72bead87899f6c 100644 (file)
@@ -5690,6 +5690,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
    see <xref linkend="replication-origins"/>.
   </para>
 
+  <para>
+   Unlike most system catalogs, <structname>pg_replication_origin</structname>
+   is shared across all databases of a cluster: there is only one copy
+   of <structname>pg_replication_origin</structname> per cluster, not one per
+   database.
+  </para>
+
   <table>
 
    <title><structname>pg_replication_origin</structname> Columns</title>
@@ -6608,7 +6615,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
 
   <para>
    Unlike most system catalogs, <structname>pg_subscription</structname> is
-   shared across all databases of a cluster: There is only one copy
+   shared across all databases of a cluster: there is only one copy
    of <structname>pg_subscription</structname> per cluster, not one per
    database.
   </para>
index a42e568d5c98f54ae40b38073ad09fd173a14ee9..7e6541d0dee2783065b66cd6482478c298dec7a9 100644 (file)
@@ -401,7 +401,7 @@ GetMemoryChunkContext())
 
 and then invoke the corresponding method for the context
 
-    context->methods->free_p(p);
+    context->methods->free_p(pointer);
 
 
 More Control Over aset.c Behavior
index e2bfa11e370d7a6208ffc13b9d7428ae6593851f..182aa8d4536db6d582373a34560995af776dc8e7 100644 (file)
@@ -22,7 +22,7 @@
  * contains exactly one disk block).  the blocks are numbered
  * sequentially, 0 to 0xFFFFFFFE.
  *
- * InvalidBlockNumber is the same thing as P_NEW in buf.h.
+ * InvalidBlockNumber is the same thing as P_NEW in bufmgr.h.
  *
  * the access methods, the buffer manager and the storage manager are
  * more or less the only pieces of code that should be accessing disk