Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit737f226

Browse files
committed
docs: adjust multi-column most-common-value statistics
This commit adds a mention that the order of columns specified duringmulti-column most-common-value statistics is insignificant, and tries tosimplify examples.Discussion:https://postgr.es/m/20190828162238.GA8360@momjian.usBackpatch-through: 12
1 parent9d42df7 commit737f226

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎doc/src/sgml/perform.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ WHERE tablename = 'road';
11721172
<para>
11731173
Here is an example of collecting functional-dependency statistics:
11741174
<programlisting>
1175-
CREATE STATISTICS stts (dependencies) ONzip, city FROM zipcodes;
1175+
CREATE STATISTICS stts (dependencies) ONcity, zip FROM zipcodes;
11761176

11771177
ANALYZE zipcodes;
11781178

@@ -1262,7 +1262,7 @@ SELECT * FROM zipcodes WHERE city = 'San Francisco' AND zip = '90210';
12621262
Continuing the previous example, the n-distinct counts in a
12631263
table of ZIP codes might look like the following:
12641264
<programlisting>
1265-
CREATE STATISTICS stts2 (ndistinct) ONzip, state,city FROM zipcodes;
1265+
CREATE STATISTICS stts2 (ndistinct) ONcity, state,zip FROM zipcodes;
12661266

12671267
ANALYZE zipcodes;
12681268

@@ -1317,7 +1317,7 @@ nd | {"1, 2": 33178, "1, 5": 33178, "2, 5": 27435, "1, 2, 5": 33178}
13171317
a function is required for inspection of MCV contents):
13181318

13191319
<programlisting>
1320-
CREATE STATISTICS stts3 (mcv) ONstate, city FROM zipcodes;
1320+
CREATE STATISTICS stts3 (mcv) ONcity, state FROM zipcodes;
13211321

13221322
ANALYZE zipcodes;
13231323

‎doc/src/sgml/ref/create_statistics.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ CREATE STATISTICS [ IF NOT EXISTS ] <replaceable class="parameter">statistics_na
9898
<listitem>
9999
<para>
100100
The name of a table column to be covered by the computed statistics.
101-
At least two column names must be given.
101+
At least two column names must be given; the order of the column names
102+
is insignificant.
102103
</para>
103104
</listitem>
104105
</varlistentry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp