work on doing a roll-forward inside gl trigger

This commit is contained in:
Paul Trowbridge 2018-09-24 16:48:08 -04:00
parent e6770c243b
commit 7f59452298

View File

@ -5,18 +5,15 @@ CREATE OR REPLACE FUNCTION evt.gl_insert() RETURNS trigger
AS AS
$func$ $func$
DECLARE DECLARE
_lastid ltree;
_lastdur tstzrange; _lastdur tstzrange;
_newdur tstzrange; _newdur tstzrange;
BEGIN BEGIN
--get last global rollforward --get last global rollforward
SELECT SELECT
id dur
,dur
INTO INTO
_lastid _lastdur
,_lastdur
FROM FROM
evt.fspr evt.fspr
WHERE WHERE