Hi, With the glibc 2.28 coming, all users will have to reindex almost every indexes after a glibc upgrade to guarantee the lack of corruption. Unfortunately, reindexdb is not ideal for that as it's processing everything using a single connexion and isn't able to discard indexes that doesn't depend on a glibc collation.
PFA a patchset to add parallelism to reindexdb (reusing the infrastructure in vacuumdb with some additions) and an option to discard indexes that doesn't depend on glibc (without any specific collation filtering or glibc version detection), with updated regression tests. Note that this should be applied on top of the existing reindexdb cleanup & refactoring patch (https://commitfest.postgresql.org/23/2115/). This was sponsored by VMware, and has been discussed internally with Kevin and Michael, in Cc.
0003-Add-parallel-processing-to-reindexdb.patch
Description: Binary data
0001-Export-vacuumdb-s-parallel-infrastructure.patch
Description: Binary data
0004-Add-a-glibc-dependent-option.patch
Description: Binary data
0002-Add-a-SimplePtrList-implementation.patch
Description: Binary data