You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removes the `error_series` table, which was probably useless anyway, and adds a `benchmark` column to the `error` table instead. This will allow us to also store runtime errors in to the crate, e.g. under the name `runtime:foo`.
aid integer not null references artifact(id) on delete cascade on update cascade,
236
+
benchmark text not null,
237
+
error text not null,
238
+
primary key(aid, benchmark)
239
+
);
240
+
insert into error_new(aid, benchmark, error)
241
+
select aid, crate, error
242
+
from error
243
+
join error_series es on error.series = es.id;
244
+
245
+
drop table error;
246
+
drop table error_series;
247
+
alter table error_new rename to error;
232
248
"#,
233
249
];
234
250
@@ -368,7 +384,7 @@ impl PostgresConnection {
368
384
PostgresConnection{
369
385
statements:Arc::new(CachedStatements{
370
386
get_pstat: conn
371
-
.prepare("
387
+
.prepare("
372
388
WITH aids AS (
373
389
select aid, num from unnest($2::int[]) with ordinality aids(aid, num)
374
390
),
@@ -432,8 +448,7 @@ impl PostgresConnection {
432
448
)
433
449
.await
434
450
.unwrap(),
435
-
get_error: conn.prepare("select crate, error from error_series
436
-
inner join error on error.series = error_series.id and aid = $1").await.unwrap(),
451
+
get_error: conn.prepare("select benchmark, error from error where aid = $1").await.unwrap(),
437
452
select_self_query_series: conn.prepare("select id from self_profile_query_series where crate = $1 and profile = $2 and cache = $3 and query = $4").await.unwrap(),
438
453
insert_self_query_series: conn.prepare("insert into self_profile_query_series (crate, profile, cache, query) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING RETURNING id").await.unwrap(),
439
454
insert_pstat_series: conn.prepare("insert into pstat_series (crate, profile, cache, statistic) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING RETURNING id").await.unwrap(),
0 commit comments