From e9ccb66225f16880a331355a7923556791debd05 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 9 Mar 2023 08:17:14 +0000 Subject: [PATCH] Fix counting derivations when there are lots --- guix-data-service/jobs/load-new-guix-revision.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix-data-service/jobs/load-new-guix-revision.scm b/guix-data-service/jobs/load-new-guix-revision.scm index b2fa6cc..7eb4425 100644 --- a/guix-data-service/jobs/load-new-guix-revision.scm +++ b/guix-data-service/jobs/load-new-guix-revision.scm @@ -2171,7 +2171,7 @@ SKIP LOCKED") (match (exec-query conn - "SELECT reltuples::integer FROM pg_class WHERE relname = 'derivation_inputs'") + "SELECT reltuples::bigint FROM pg_class WHERE relname = 'derivation_inputs'") (((rows)) ;; Don't attempt counting distinct values if there are too ;; many rows, as that is far to slow and could use up all the