Skip to content

Commit

Permalink
useful.sql: add maintainers to SQL output
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Jun 28, 2024
1 parent b8ca9c4 commit ce18379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/useful.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- some useful SQL commands (for PostgreSQL)

-- show build log
select id, ts, pkgbase, nv_version, pkg_version, elapsed, result, cputime, case when elapsed = 0 then 0 else cputime * 100 / elapsed end as "cpu%", round(memory / 1073741824.0, 3) as "memory (GiB)", substring(msg for 20) as msg, build_reasons from pkglog order by id desc limit 10;
select id, ts, pkgbase, nv_version, pkg_version, elapsed, result, cputime, case when elapsed = 0 then 0 else cputime * 100 / elapsed end as "cpu%", round(memory / 1073741824.0, 3) as "memory (GiB)", substring(msg for 20) as msg, build_reasons, (select array_agg(github) from jsonb_to_recordset(maintainers) as m(github text)) as maintainers from pkglog order by id desc limit 10;

-- show current build status and expected time
select index, c.pkgbase, updated_at, status, elapsed as last_time, c.build_reasons from pkgcurrent as c left join lateral (
Expand Down

0 comments on commit ce18379

Please sign in to comment.