postgresql/src/bin/scripts
Nathan Bossart 8c0c868637 vacuumdb: Fix --missing-stats-only with virtual generated columns.
Statistics aren't created for virtual generated columns, so
"vacuumdb --missing-stats-only" always chooses to analyze tables
that have them.  To fix, modify vacuumdb's query for retrieving
relations that are missing statistics to exclude those columns.

Oversight in commit edba754f05.

Author: Yugo Nagata <nagata@sraoss.co.jp>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Discussion: https://postgr.es/m/20250820104226.8ba51e43164cd590b863ce41%40sraoss.co.jp
Backpatch-through: 18
2025-08-22 11:11:28 -05:00
..
po Translation updates 2025-07-14 13:54:38 +03:00
t vacuumdb: Fix --missing-stats-only with virtual generated columns. 2025-08-22 11:11:28 -05:00
.gitignore Remove createlang and droplang 2017-03-23 14:16:45 -04:00
clusterdb.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
common.c Specify the encoding of input to fmtId() 2025-02-10 10:03:37 -05:00
common.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
createdb.c Specify the encoding of input to fmtId() 2025-02-10 10:03:37 -05:00
createuser.c Specify the encoding of input to fmtId() 2025-02-10 10:03:37 -05:00
dropdb.c Specify the encoding of input to fmtId() 2025-02-10 10:03:37 -05:00
dropuser.c Specify the encoding of input to fmtId() 2025-02-10 10:03:37 -05:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls.mk Add missing source files to nls.mk 2024-06-13 10:17:36 +02:00
pg_isready.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
reindexdb.c Harmonize function parameter names for Postgres 18. 2025-04-12 12:07:36 -04:00
vacuumdb.c vacuumdb: Fix --missing-stats-only with virtual generated columns. 2025-08-22 11:11:28 -05:00