Backing up everything is a good idea anyway - you can do that via File --> Backup.
But you only need to reinstall PostgreSQL, as explained on our
documentation page. Make sure you install the same minor number that you previously had (if you had 8.3, install 8.3, if you had 8.4, install 8.4).