postgresql/src/bin/scripts
Nathan Bossart 7e085aabd5 vacuumdb: Fix --missing-stats-only for partitioned indexes.
The current form of the catalog query picks up partitioned tables
with expression indexes that lack statistics.  However, since such
indexes never have statistics, there's no point in analyzing them.
To fix, adjust the relevant part of the query to skip partitioned
tables with expression indexes.  While at it, remove the nearby
stainherit check; entries for index expressions always have
stainherit = false.

Author: Baji Shaik <baji.pgdev@gmail.com>
Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Discussion: https://postgr.es/m/CA%2Bfm-RPE1tEc6CUUPDyRbYTz9tF5Kw47nnk-Zq%3DyYvanbsxyCQ%40mail.gmail.com
Backpatch-through: 18
2026-06-17 09:18:39 -05:00
..
po Translation updates 2026-02-08 15:07:02 +01:00
t vacuumdb: Fix --missing-stats-only for partitioned indexes. 2026-06-17 09:18:39 -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 for partitioned indexes. 2026-06-17 09:18:39 -05:00