low_memory_mgr_cleanup.sql 894 B

1234567891011121314151617181920212223
  1. { Remove the tasks from the ph_task table }
  2. DELETE FROM ph_task WHERE tk_id = -3;
  3. DELETE FROM ph_task WHERE tk_name = "Low Memory Reconfig";
  4. { SAVE LMM ph_threshold VALUES. }
  5. { REMOVE ANY PREVIOUSLY SAVED VALUES }
  6. DELETE FROM ph_threshold WHERE name IN
  7. ( "XX LMM START THRESHOLD", "XX LMM STOP THRESHOLD", "XX LMM IDLE TIME" );
  8. { SAVE THE CURRENT VALUES }
  9. UPDATE ph_threshold SET name = "XX "||name WHERE name IN
  10. ( "LMM START THRESHOLD", "LMM STOP THRESHOLD", "LMM IDLE TIME" );
  11. { Remove the existing functions }
  12. DROP FUNCTION informix.low_memory_mgr_message(informix.integer, informix.integer,
  13. informix.lvarchar, informix.integer );
  14. DROP FUNCTION db_low_memory_mgr();
  15. DROP FUNCTION LowMemoryManager(INTEGER, INTEGER);
  16. DROP FUNCTION LowMemoryReconfig(INTEGER, INTEGER, LVARCHAR);
  17. DROP PROCEDURE kill_fat_sessions(INTEGER);
  18. DROP PROCEDURE kill_idle_sessions(INTEGER);