Database Administration
In general, you should refer to your database administrator to perform administrative tasks with your PostgreSQL DB. However, there is a set of tools packaged for PostgreSQL databases, named pgadmin, which is available at https://www.pgadmin.org/download/.
The two most common activities seen are:
- PostgreSQL database compression
- PostgreSQL database reindexing.
Steps
- Stop the Application Server and then the Database Server.
- Make a copy of the DB data folder.
- Start pgadmin and go to VACUUM FULL ANALYZE Maintenance:
- Review the log of the process:
PostgreSQL database reindexing
To address any issues when the indexes are corrupted.
Steps
- SStart pgadmin and Indexes.:
- Select the index for which you see log errors and select Re-index.
- You may do this while the database is still running.
- If the issue is not resolved with the log messages, you will need to drop and recreate the index.
- For this you must top the Application Server and then the Database Server.
- Make a copy of the DB data folder.