Fix counting derivations when there are lots

This commit is contained in:
Christopher Baines 2023-03-09 08:17:14 +00:00
parent a6f239fb8a
commit e9ccb66225

View file

@ -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