use copy not baseline, build log table

This commit is contained in:
pt 2020-02-13 02:25:02 -05:00
parent d557fe9cc3
commit 040ba4caf6
2 changed files with 9 additions and 2 deletions

View File

@ -129,3 +129,10 @@ FROM
i.item = o.part i.item = o.part
--LIMIT 100 --LIMIT 100
) WITH DATA; ) WITH DATA;
CREATE INDEX osm_qr ON rlarp.osm_pool(quota_rep_descr);
DROP TABLE IF EXISTS rlarp.osm_log;
CREATE TABLE IF NOT EXISTS rlarp.osm_log(id INT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, doc jsonb);

View File

@ -552,7 +552,7 @@ SELECT
,o.sdate + interval '1 year' --incremented ,o.sdate + interval '1 year' --incremented
,o.sseas + 1 --incremented ,o.sseas + 1 --incremented
,'b21' "version" ,'b21' "version"
,'baseline' iter ,'copy' iter
FROM FROM
baseline o baseline o
LEFT OUTER JOIN gld ON LEFT OUTER JOIN gld ON