CREATE INDEX: do not update stats during binary upgrade.
authorJeff Davis <jdavis@postgresql.org>
Wed, 3 Apr 2024 23:12:45 +0000 (16:12 -0700)
committerJeff Davis <jdavis@postgresql.org>
Wed, 3 Apr 2024 23:12:45 +0000 (16:12 -0700)
commit71b66171d045878cb9267a268a3bf8ce4f11f333
tree860b38d2f561c2a617ee8f7791b0db0d656fc01c
parent06286709ee0637ec7376329a5aa026b7682dcfe2
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
src/backend/catalog/index.c