comment out the raise notice debug items
This commit is contained in:
parent
aa4d6fb7f0
commit
8f2a7431bc
@ -53,7 +53,7 @@ WHERE
|
|||||||
dtype = 'date'
|
dtype = 'date'
|
||||||
AND func IS NOT NULL;
|
AND func IS NOT NULL;
|
||||||
|
|
||||||
raise notice '%',_perd_joins;
|
--raise notice '%',_perd_joins;
|
||||||
|
|
||||||
-------------------------------build a column list-----------------------------------------
|
-------------------------------build a column list-----------------------------------------
|
||||||
SELECT
|
SELECT
|
||||||
@ -65,7 +65,7 @@ FROM
|
|||||||
WHERE
|
WHERE
|
||||||
COALESCE(appcol,'') NOT IN ('version','iter','logid');
|
COALESCE(appcol,'') NOT IN ('version','iter','logid');
|
||||||
|
|
||||||
raise notice '%',_clist;
|
--raise notice '%',_clist;
|
||||||
---------------------------build column to increment dates---------------------------------
|
---------------------------build column to increment dates---------------------------------
|
||||||
|
|
||||||
SELECT
|
SELECT
|
||||||
@ -96,7 +96,7 @@ FROM
|
|||||||
WHERE
|
WHERE
|
||||||
COALESCE(appcol,'') NOT IN ('version','iter','logid');
|
COALESCE(appcol,'') NOT IN ('version','iter','logid');
|
||||||
|
|
||||||
RAISE NOTICE 'DATES INCREMENTED: %',_clist_inc;
|
--RAISE NOTICE 'DATES INCREMENTED: %',_clist_inc;
|
||||||
|
|
||||||
--------------------------------------clone the actual baseline-----------------------------------------------
|
--------------------------------------clone the actual baseline-----------------------------------------------
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ $$::text
|
|||||||
INTO
|
INTO
|
||||||
_ytdbody;
|
_ytdbody;
|
||||||
|
|
||||||
RAISE NOTICE '_ytdbody %', _ytdbody;
|
--RAISE NOTICE '_ytdbody %', _ytdbody;
|
||||||
|
|
||||||
|
|
||||||
------------------------------------pull a plug from actuals to create a full year baseline------------------
|
------------------------------------pull a plug from actuals to create a full year baseline------------------
|
||||||
@ -145,7 +145,7 @@ $$
|
|||||||
INTO
|
INTO
|
||||||
_actpy;
|
_actpy;
|
||||||
|
|
||||||
RAISE NOTICE '_actpf %',_actpy;
|
--RAISE NOTICE '_actpf %',_actpy;
|
||||||
------------------------------copy a full year and increment by 1 year for the baseline-------------------------
|
------------------------------copy a full year and increment by 1 year for the baseline-------------------------
|
||||||
|
|
||||||
SELECT
|
SELECT
|
||||||
@ -179,7 +179,7 @@ INTO
|
|||||||
_baseline;
|
_baseline;
|
||||||
|
|
||||||
|
|
||||||
RAISE NOTICE '_baseline %',_baseline;
|
--RAISE NOTICE '_baseline %',_baseline;
|
||||||
------------------------------stack the sql into the final format------------------------------------------------
|
------------------------------stack the sql into the final format------------------------------------------------
|
||||||
|
|
||||||
SELECT
|
SELECT
|
||||||
@ -194,7 +194,7 @@ $$||_baseline
|
|||||||
INTO
|
INTO
|
||||||
_sql;
|
_sql;
|
||||||
|
|
||||||
RAISE NOTICE '_sql %',_sql;
|
--RAISE NOTICE '_sql %',_sql;
|
||||||
|
|
||||||
INSERT INTO fc.sql SELECT 'baseline', _sql ON CONFLICT ON CONSTRAINT sql_pkey DO UPDATE SET t = EXCLUDED.t;
|
INSERT INTO fc.sql SELECT 'baseline', _sql ON CONFLICT ON CONSTRAINT sql_pkey DO UPDATE SET t = EXCLUDED.t;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user