Changes between Version 5 and Version 6 of drmsSumRm


Ignore:
Timestamp:
09/11/14 14:13:13 (10 years ago)
Author:
joe
Comment:

added new check for how many sunums could be cleaned up + trigger to keep effective_date low.

Legend:

Unmodified
Added
Removed
Modified
  • drmsSumRm

    v5 v6  
    2626}}} 
    2727 
    28 to ascertain if this may be the case. 
     28to ascertain if this may be the case.  You can also try: 
     29 
     30{{{ 
     31select count(*) from sum_partn_alloc where effective_date < to_char( now(), 'YYYYMMDDHH24MI' ); 
     32}}} 
     33 
     34 
     35 
    2936 
    3037The configuration file for sum_rm is below : 
     
    101108NORUN_STOP=7 
    102109}}} 
     110 
     111 
     112---- 
     113 
     114If you are setting SUMS up on a test server that doesn't have much disk space, the following trigger can be used to ensure that the SUMS effective_date is kept low enough to ensure sum_rm can clean up: 
     115 
     116{{{ 
     117CREATE OR REPLACE FUNCTION no_retention ( ) RETURNS TRIGGER LANGUAGE PLPGSQL AS $$ 
     118BEGIN 
     119NEW.effective_date := to_char( (now()+INTERVAL '2 hours'), 'YYYYMMDDHH24MI' ); 
     120END 
     121$$; 
     122 
     123CREATE TRIGGER no_retention BEFORE INSERT ON sum_partn_alloc FOR EACH ROW EXECUTE PROCEDURE no_retention(); 
     124}}}