CREATE INDEX: do not update stats during binary upgrade.

Jeff Davis <jdavis@postgresql.org>

Commit: 71b66171d045878cb9267a268a3bf8ce4f11f333
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2024-04-03T23:12:45Z
Releases: 17.0
CREATE INDEX: do not update stats during binary upgrade.

During binary upgrade, indexes are created before the data is moved
into place, so it will always be zero.

This is not currently a major problem, but will be when we try to
preserve statistics during upgrade.

Author: Corey Huinker
Discussion: https://postgr.es/m/CADkLM=daPdFB8V0tgFxK-dLowFsAEzWRWJHyxij7BG3kBjcouA@mail.gmail.com

Files

PathChange+/−
src/backend/catalog/index.c modified +5 −1

Discussion