mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Replace ALTER TABLE ... SET STATISTICS DISTINCT with a more general mechanism.
Attributes can now have options, just as relations and tablespaces do, and the reloptions code is used to parse, validate, and store them. For simplicity and because these options are not performance critical, we store them in a separate cache rather than the main relcache. Thanks to Alex Hunsaker for the review.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/analyze.sgml,v 1.27 2009/08/04 22:04:37 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/analyze.sgml,v 1.28 2010/01/22 16:40:18 rhaas Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@@ -173,7 +173,7 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table</replaceable> [ ( <re
|
||||
with the largest possible statistics target. If this inaccuracy leads to
|
||||
bad query plans, a more accurate value can be determined manually and then
|
||||
installed with
|
||||
<command>ALTER TABLE ... ALTER COLUMN ... SET STATISTICS DISTINCT</>
|
||||
<command>ALTER TABLE ... ALTER COLUMN ... SET (n_distinct = ...)</>
|
||||
(see <xref linkend="sql-altertable" endterm="sql-altertable-title">).
|
||||
</para>
|
||||
</refsect1>
|
||||
|
Reference in New Issue
Block a user