procedures-epilogue.sql (1140B)
1 -- 2 -- This file is part of TALER 3 -- Copyright (C) 2014--2026 Taler Systems SA 4 -- 5 -- TALER is free software; you can redistribute it and/or modify it under the 6 -- terms of the GNU General Public License as published by the Free Software 7 -- Foundation; either version 3, or (at your option) any later version. 8 -- 9 -- TALER is distributed in the hope that it will be useful, but WITHOUT ANY 10 -- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 -- A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 -- 13 -- You should have received a copy of the GNU General Public License along with 14 -- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 -- 16 17 18 DROP PROCEDURE IF EXISTS exchange_do_gc; 19 CREATE PROCEDURE exchange_do_gc( 20 IN in_ancient_date INT8, 21 IN in_now INT8) 22 LANGUAGE plpgsql 23 AS $$ 24 BEGIN 25 CALL exchange_do_main_gc(in_ancient_date,in_now); 26 CALL exchange_statistic_amount_gc (); 27 CALL exchange_statistic_bucket_gc (); 28 CALL exchange_statistic_counter_gc (); 29 END $$; 30 COMMENT ON PROCEDURE exchange_do_gc 31 IS 'calls all other garbage collection subroutines'; 32 33 COMMIT;