From e5b25618214aea059f2201a0ffaa250748de95f6 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Thu, 13 Jul 2023 10:19:01 -0700 Subject: [PATCH] disable prepared statements: prepare_threshold=None --- warcprox/dedup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warcprox/dedup.py b/warcprox/dedup.py index 90cdf32..ab9d863 100644 --- a/warcprox/dedup.py +++ b/warcprox/dedup.py @@ -96,7 +96,7 @@ class LimitRevisitsPGMixin(): # datasource like "postgresql://user@db_host/db_name" # table name revisits try: - self._conn = psycopg.connect(datasource) + self._conn = psycopg.connect(datasource, prepare_threshold=None) except Exception as e: self.logger.warning("db connection failure: %s", e)