@lain @sarvo @duponin Not that I could find. What I did find is that you can pass a list with what you want to restore and in what order. But it still takes some extra steps and even with these steps added to the docs, people still just did a dump and restore like they were used to (and then understandably still complained that restoration goes super slow).
To get the list
pg_restore -l pleroma.pgdump > db.listThen find the line where the index is restored and move it. Then restore using the new list with
sudo -Hu postgres pg_restore -L db.list -d pleroma -v -1 pleroma.pgdump