diff --git a/sql/get_hist_debug.pg.sql b/sql/get_hist_debug.pg.sql index 2f76851..67da137 100644 --- a/sql/get_hist_debug.pg.sql +++ b/sql/get_hist_debug.pg.sql @@ -1,5 +1,5 @@ WITH -sel AS (select 'v1:L..PLT..' _v1ds, 'DREAM WITH COLORS' _cust, 'UL.12000' _mold, 'D' _chan) +sel AS (select 'v1:L..PLT..' _v1ds, 'GRIFFIN' _cust, 'ULH12000' _mold, 'W' _chan) ,sort AS ( SELECT p.agglevel @@ -151,4 +151,5 @@ FROM --SELECT jsonb_pretty(jsonb_agg(doc)) FROM rel_sort --SELECT jsonb_pretty(jsonb_obj_aggc(doc)) FROM rel_sort--INTO _result FROM rel_sort WHERE rnk = 1; --SELECT * FROM rel_sort; -SELECT jsonb_obj_aggc(doc) FROM rel_sort WHERE rnk = 1; +SELECT * FROM flag +--SELECT jsonb_obj_aggc(doc) FROM rel_sort WHERE rnk = 1;