mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
disable prepared statements: prepare_threshold=None
This commit is contained in:
parent
548c4e5cab
commit
e5b2561821
@ -96,7 +96,7 @@ class LimitRevisitsPGMixin():
|
|||||||
# datasource like "postgresql://user@db_host/db_name"
|
# datasource like "postgresql://user@db_host/db_name"
|
||||||
# table name revisits
|
# table name revisits
|
||||||
try:
|
try:
|
||||||
self._conn = psycopg.connect(datasource)
|
self._conn = psycopg.connect(datasource, prepare_threshold=None)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.warning("db connection failure: %s", e)
|
self.logger.warning("db connection failure: %s", e)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user