Document that ALTER TABLE .. TYPE removes statistics

Co-authored-by: Nikolai Berkoff <nikolai.berkoff@pm.me>
Discussion: https://postgr.es/m/vCc8XnwDmlP4ZnHBQLIVxzD405BiYHVC9qZlhIF7IsfxK0gC9mZ4PUUOH0-3y6kv5p-87-3_ljqT1KvQVAnb8OoWhPU3kcqWn2ZpmxRBCQg=@pm.me
This commit is contained in:
Alvaro Herrera 2021-11-05 12:09:31 -03:00
parent 105c1de019
commit df80f9da5c
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE

View File

@ -198,6 +198,12 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
clause must be provided if there is no implicit or assignment clause must be provided if there is no implicit or assignment
cast from old to new type. cast from old to new type.
</para> </para>
<para>
When this form is used, the column's statistics are removed,
so running <link linkend="sql-analyze"><command>ANALYZE</command></link>
on the table afterwards is recommended.
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>