Changes between Version 5 and Version 6 of drmsSumRm
- Timestamp:
- 09/11/14 14:13:13 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
drmsSumRm
v5 v6 26 26 }}} 27 27 28 to ascertain if this may be the case. 28 to ascertain if this may be the case. You can also try: 29 30 {{{ 31 select count(*) from sum_partn_alloc where effective_date < to_char( now(), 'YYYYMMDDHH24MI' ); 32 }}} 33 34 35 29 36 30 37 The configuration file for sum_rm is below : … … 101 108 NORUN_STOP=7 102 109 }}} 110 111 112 ---- 113 114 If 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 {{{ 117 CREATE OR REPLACE FUNCTION no_retention ( ) RETURNS TRIGGER LANGUAGE PLPGSQL AS $$ 118 BEGIN 119 NEW.effective_date := to_char( (now()+INTERVAL '2 hours'), 'YYYYMMDDHH24MI' ); 120 END 121 $$; 122 123 CREATE TRIGGER no_retention BEFORE INSERT ON sum_partn_alloc FOR EACH ROW EXECUTE PROCEDURE no_retention(); 124 }}}