Compare commits
9 Commits
08e768eb22
...
f548780d9f
Author | SHA1 | Date | |
---|---|---|---|
f548780d9f | |||
3fe5126861 | |||
5fa405f65c | |||
c9811e69db | |||
1f96081a41 | |||
d3937fc406 | |||
745f83e502 | |||
14ed4a95fe | |||
b38150e128 |
@ -82,6 +82,8 @@ GROUP BY
|
|||||||
,tag
|
,tag
|
||||||
,comment
|
,comment
|
||||||
,substance
|
,substance
|
||||||
|
ORDER BY
|
||||||
|
logid ASC
|
||||||
)
|
)
|
||||||
SELECT
|
SELECT
|
||||||
json_agg(row_to_json(rows)) x
|
json_agg(row_to_json(rows)) x
|
||||||
|
@ -25,7 +25,7 @@ group BY
|
|||||||
,jsonb_pretty(ol.doc)
|
,jsonb_pretty(ol.doc)
|
||||||
,ol.id
|
,ol.id
|
||||||
ORDER BY
|
ORDER BY
|
||||||
(ol.doc->>'stamp')::timestamptz desc
|
ol.id desc
|
||||||
)
|
)
|
||||||
SELECT
|
SELECT
|
||||||
jsonb_agg(row_to_json(agg)::jsonb ORDER BY agg.stamp desc) x from agg
|
jsonb_agg(row_to_json(agg)::jsonb ORDER BY agg.id desc) x from agg
|
||||||
|
Loading…
Reference in New Issue
Block a user