> > Is this a hypothetical problem or something you've experienced? > > The problem is real: when trying to rescue data from a large corrupted > database, we couldn't wait for the index definition query for more than 3 > hours.
Maybe it'd be reasonable to start the recovery by doing VACUUM FULL of all/some system catalogs.