note on aggregate
This commit is contained in:
parent
1e2c166ed8
commit
4d10455cf1
@ -1,3 +1,8 @@
|
|||||||
|
To extract aggregate definitions can select from `pg_aggregate`
|
||||||
|
|
||||||
|
|
||||||
|
SQL for current aggregates I'm using now:
|
||||||
|
```
|
||||||
CREATE OR REPLACE FUNCTION public.jsonb_concat(
|
CREATE OR REPLACE FUNCTION public.jsonb_concat(
|
||||||
state jsonb,
|
state jsonb,
|
||||||
concat jsonb)
|
concat jsonb)
|
||||||
@ -41,3 +46,4 @@ CREATE AGGREGATE public.jsonb_obj_aggc(jsonb) (
|
|||||||
STYPE=jsonb,
|
STYPE=jsonb,
|
||||||
INITCOND='{}'
|
INITCOND='{}'
|
||||||
);
|
);
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user