All checks were successful
/ release (push) Successful in 1m23s
This avoids the append problem which bloats the database to 200+ gb in a month and shrinks again to 5g with a full vacuum
3 lines
119 B
SQL
3 lines
119 B
SQL
INSERT INTO logs (task_id, message)
|
|
SELECT id as task_id, l as message
|
|
FROM tasks, unnest(log) l ORDER BY task_id ASC;
|