Browse Source

Fix incorrect CREATE STATISTICS example in docs

The example was incorrectly using parantheses around the list of columns, so
just drop them.

Reported-By: Robert Haas
Discussion: https://postgr.es/m/CA%2BTgmoZZEMAqWMAfvLHZnK57SoxOutgvE-ALO94WsRA7zZ7wyQ%40mail.gmail.com
tags/REL_12_BETA2
Tomas Vondra 1 month ago
parent
commit
7f44efa10b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      doc/src/sgml/ref/create_statistics.sgml

+ 1
- 1
doc/src/sgml/ref/create_statistics.sgml View File

@@ -178,7 +178,7 @@ CREATE TABLE t2 (
178 178
 INSERT INTO t2 SELECT mod(i,100), mod(i,100)
179 179
                  FROM generate_series(1,1000000) s(i);
180 180
 
181
-CREATE STATISTICS s2 (mcv) ON (a, b) FROM t2;
181
+CREATE STATISTICS s2 (mcv) ON a, b FROM t2;
182 182
 
183 183
 ANALYZE t2;
184 184
 

Loading…
Cancel
Save