But you should do that according to the documentation:
...After restoring a backup, it is wise to run ANALYZE on each database so thequery optimizer has useful statistics....