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
$func$
DECLARE
_lastid ltree;
_lastdur tstzrange;
_newdur tstzrange;
BEGIN
--get last global rollforward
SELECT
id
,dur
dur
INTO
_lastid
,_lastdur
_lastdur
FROM
evt.fspr
WHERE