Views:

PostgreSQL suggests that the database is frequently updated by operations, like update, delete, insert, etc., and using VACUUM will be more efficient than VACUUM FULL. Also, by expanding the FSM to cover all the dead tuples, you may never need to run VACUUM FULL again, except on holidays. FSM is kept in the memory by postgreSQL and one FSM occupies 6bytes of memory.

To resolve this issue, adjust the value of the "max_fsm_pages" parameter:

  1. Download the vacuum_pglargeobject_va.sh tool.
  2. Extract and execute vacuum_pglargeobj.sh to run VACUUM FULL.
  3. After VACUUM FULL is complete, open the /var/imss/pgdata/postgresql.conf file.
  4. Look for the "max_fsm_pages" parameter and set its value to "100000".
  5. Save and close the file.
  6. Use the following command to restart all the services, including postgreSQL:

    /opt/trend/imss/script/imssctl.sh restart

VACUUM will take effect on all the tables after changing the value of the parameter.