Doc: Add note for running ANALYZE after ALTER TABLE ... SET EXPRESSION
Yugo Nagata <nagata@sraoss.co.jp>
From: Yugo Nagata <nagata@sraoss.co.jp>
To: Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2025-08-04T06:14:18Z
Lists: pgsql-hackers
Attachments
- fix_doc_alter_table_set_expression.patch (text/x-diff) patch
Hi, The documentation recommends running ANALYZE after the "ALTER TABLE ... SET DATA TYPE" command since the statistics will become wrong after that. That same thing can be applied to "ALTER TABLE ... SET EXPRESSION" commands, but that is not described in the documentation, so I've attached a patch to add this statement. Regards, Yugo Nagata
Commits
-
doc: Recommend ANALYZE after ALTER TABLE ... SET EXPRESSION AS.
- 753177604b33 17.6 landed
- 3e65e77f7666 18.0 landed
- 0b6aea03843d 19 (unreleased) landed