           ;; in the DLO
           (throw e)))))))
 
+(def fact-path-gc-lock-timeout-ms
+  (env-config-for-db-ulong "PDB_FACT_PATH_GC_SQL_LOCK_TIMEOUT_MS"
+                           (* 10 60 1000)))
+
 (defn garbage-collect!
   "Delete any lingering, unassociated data in the database"
   [db]

     (jdbc/with-transacted-connection' db :repeatable-read
       ;; May or may not require postgresql's "stronger than the
       ;; standard" behavior for repeatable read.
       (delete-unused-fact-paths)))))

           [java.util Arrays]
           [org.postgresql.util PGobject]
           [org.joda.time Period]
           [java.sql SQLException Timestamp]
           (java.time Instant LocalDate LocalDateTime Year ZoneId ZonedDateTime)
           (java.time.temporal ChronoUnit)
           (java.time.format DateTimeFormatter)))
