mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Don't use SGML empty tags
For DocBook XML compatibility, don't use SGML empty tags (</>) anymore, replace by the full tag name. Add a warning option to catch future occurrences. Alexander Lakhin, Jürgen Purtz
This commit is contained in:
@@ -41,7 +41,7 @@ CREATE STATISTICS [ IF NOT EXISTS ] <replaceable class="parameter">statistics_na
|
||||
|
||||
<para>
|
||||
If a schema name is given (for example, <literal>CREATE STATISTICS
|
||||
myschema.mystat ...</>) then the statistics object is created in the
|
||||
myschema.mystat ...</literal>) then the statistics object is created in the
|
||||
specified schema. Otherwise it is created in the current schema.
|
||||
The name of the statistics object must be distinct from the name of any
|
||||
other statistics object in the same schema.
|
||||
@@ -54,7 +54,7 @@ CREATE STATISTICS [ IF NOT EXISTS ] <replaceable class="parameter">statistics_na
|
||||
<variablelist>
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>IF NOT EXISTS</></term>
|
||||
<term><literal>IF NOT EXISTS</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Do not throw an error if a statistics object with the same name already
|
||||
@@ -129,7 +129,7 @@ CREATE STATISTICS [ IF NOT EXISTS ] <replaceable class="parameter">statistics_na
|
||||
<title>Examples</title>
|
||||
|
||||
<para>
|
||||
Create table <structname>t1</> with two functionally dependent columns, i.e.
|
||||
Create table <structname>t1</structname> with two functionally dependent columns, i.e.
|
||||
knowledge of a value in the first column is sufficient for determining the
|
||||
value in the other column. Then functional dependency statistics are built
|
||||
on those columns:
|
||||
@@ -157,10 +157,10 @@ EXPLAIN ANALYZE SELECT * FROM t1 WHERE (a = 1) AND (b = 0);
|
||||
</programlisting>
|
||||
|
||||
Without functional-dependency statistics, the planner would assume
|
||||
that the two <literal>WHERE</> conditions are independent, and would
|
||||
that the two <literal>WHERE</literal> conditions are independent, and would
|
||||
multiply their selectivities together to arrive at a much-too-small
|
||||
row count estimate.
|
||||
With such statistics, the planner recognizes that the <literal>WHERE</>
|
||||
With such statistics, the planner recognizes that the <literal>WHERE</literal>
|
||||
conditions are redundant and does not underestimate the rowcount.
|
||||
</para>
|
||||
|
||||
|
Reference in New Issue
Block a user