Commit 2a27dbae authored by Michael Paquier's avatar Michael Paquier

doc: Fix some typos and markups

Author: Ekaterina Kiryanova
Discussion: https://postgr.es/m/8a14e78f-6991-7a6e-4711-fe376635f2ad@postgrespro.ru
Backpatch-through: 14
parent cea5624f
...@@ -664,7 +664,7 @@ options(<replaceable>relopts</replaceable> <type>local_relopts *</type>) returns ...@@ -664,7 +664,7 @@ options(<replaceable>relopts</replaceable> <type>local_relopts *</type>) returns
certain implementation-level heuristics will fail to identify and certain implementation-level heuristics will fail to identify and
delete even one garbage index tuple (in which case a page split or delete even one garbage index tuple (in which case a page split or
deduplication pass resolves the issue of an incoming new tuple not deduplication pass resolves the issue of an incoming new tuple not
fitting on a leaf page). The worst case number of versions that fitting on a leaf page). The worst-case number of versions that
any index scan must traverse (for any single logical row) is an any index scan must traverse (for any single logical row) is an
important contributor to overall system responsiveness and important contributor to overall system responsiveness and
throughput. A bottom-up index deletion pass targets suspected throughput. A bottom-up index deletion pass targets suspected
...@@ -706,7 +706,7 @@ options(<replaceable>relopts</replaceable> <type>local_relopts *</type>) returns ...@@ -706,7 +706,7 @@ options(<replaceable>relopts</replaceable> <type>local_relopts *</type>) returns
This is expected with any B-Tree index that is subject to This is expected with any B-Tree index that is subject to
significant version churn from <command>UPDATE</command>s that significant version churn from <command>UPDATE</command>s that
rarely or never logically modify the columns that the index covers. rarely or never logically modify the columns that the index covers.
The average and worst case number of versions per logical row can The average and worst-case number of versions per logical row can
be kept low purely through targeted incremental deletion passes. be kept low purely through targeted incremental deletion passes.
It's quite possible that the on-disk size of certain indexes will It's quite possible that the on-disk size of certain indexes will
never increase by even one single page/block despite never increase by even one single page/block despite
...@@ -811,7 +811,7 @@ options(<replaceable>relopts</replaceable> <type>local_relopts *</type>) returns ...@@ -811,7 +811,7 @@ options(<replaceable>relopts</replaceable> <type>local_relopts *</type>) returns
constraints) to use deduplication. This allows leaf pages to constraints) to use deduplication. This allows leaf pages to
temporarily <quote>absorb</quote> extra version churn duplicates. temporarily <quote>absorb</quote> extra version churn duplicates.
Deduplication in unique indexes augments bottom-up index deletion, Deduplication in unique indexes augments bottom-up index deletion,
especially in cases where a long-running transactions holds a especially in cases where a long-running transaction holds a
snapshot that blocks garbage collection. The goal is to buy time snapshot that blocks garbage collection. The goal is to buy time
for the bottom-up index deletion strategy to become effective for the bottom-up index deletion strategy to become effective
again. Delaying page splits until a single long-running again. Delaying page splits until a single long-running
......
...@@ -13114,7 +13114,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx ...@@ -13114,7 +13114,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_stats_ext_exprs</structname> is also designed to present <structname>pg_stats_ext_exprs</structname> is also designed to present
the information in a more readable format than the underlying catalogs the information in a more readable format than the underlying catalogs
&mdash; at the cost that its schema must be extended whenever the structure &mdash; at the cost that its schema must be extended whenever the structure
of statistics in <link linkend="catalog-pg-statistic"><structname>pg_statistic</structname></link> changes. of statistics in <structname>pg_statistic_ext</structname> changes.
</para> </para>
<table> <table>
......
...@@ -65,8 +65,9 @@ ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> RENAME TO < ...@@ -65,8 +65,9 @@ ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> RENAME TO <
<para> <para>
Commands <command>ALTER SUBSCRIPTION ... REFRESH PUBLICATION</command> and Commands <command>ALTER SUBSCRIPTION ... REFRESH PUBLICATION</command> and
<command>ALTER SUBSCRIPTION ... {SET|ADD|DROP} PUBLICATION ...</command> with refresh <command>ALTER SUBSCRIPTION ... {SET|ADD|DROP} PUBLICATION ...</command>
option as true cannot be executed inside a transaction block. with <literal>refresh</literal> option as <literal>true</literal> cannot be
executed inside a transaction block.
</para> </para>
</refsect1> </refsect1>
......
...@@ -283,7 +283,7 @@ PostgreSQL documentation ...@@ -283,7 +283,7 @@ PostgreSQL documentation
By default, <command>initdb</command> will write instructions for how By default, <command>initdb</command> will write instructions for how
to start the cluster at the end of its output. This option causes to start the cluster at the end of its output. This option causes
those instructions to be left out. This is primarily intended for use those instructions to be left out. This is primarily intended for use
by tools that wrap <command>initdb</command> in platform specific by tools that wrap <command>initdb</command> in platform-specific
behavior, where those instructions are likely to be incorrect. behavior, where those instructions are likely to be incorrect.
</para> </para>
</listitem> </listitem>
......
...@@ -1936,11 +1936,11 @@ testdb=&gt; ...@@ -1936,11 +1936,11 @@ testdb=&gt;
<para> <para>
The status of each kind of extended statistics is shown in a column The status of each kind of extended statistics is shown in a column
named after its statistic kind (e.g. Ndistinct). named after its statistic kind (e.g. Ndistinct).
"defined" means that it was requested when creating the statistics, <literal>defined</literal> means that it was requested when creating
and NULL means it wasn't requested. the statistics, and NULL means it wasn't requested.
You can use pg_stats_ext if you'd like to know whether <link linkend="sql-analyze"> You can use <structname>pg_stats_ext</structname> if you'd like to
<command>ANALYZE</command></link> was run and statistics are available to the know whether <link linkend="sql-analyze"><command>ANALYZE</command></link>
planner. was run and statistics are available to the planner.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -875,8 +875,9 @@ typedef struct spgLeafConsistentOut ...@@ -875,8 +875,9 @@ typedef struct spgLeafConsistentOut
<para> <para>
Note: the <function>compress</function> method is only applied to Note: the <function>compress</function> method is only applied to
values to be stored. The consistent methods receive query scankeys values to be stored. The consistent methods receive query
unchanged, without transformation using <function>compress</function>. <structfield>scankeys</structfield> unchanged, without transformation
using <function>compress</function>.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -40,8 +40,8 @@ postgres=# SELECT * FROM pg_logical_slot_get_changes('test_slot', NULL, NULL, 'i ...@@ -40,8 +40,8 @@ postgres=# SELECT * FROM pg_logical_slot_get_changes('test_slot', NULL, NULL, 'i
</para> </para>
<para> <para>
We can also get the changes of the in-progress transaction and the typical We can also get the changes of the in-progress transaction, and the typical
output, might be: output might be:
<programlisting> <programlisting>
postgres[33712]=#* SELECT * FROM pg_logical_slot_get_changes('test_slot', NULL, NULL, 'stream-changes', '1'); postgres[33712]=#* SELECT * FROM pg_logical_slot_get_changes('test_slot', NULL, NULL, 'stream-changes', '1');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment