mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
db: Use cursor_factory psycopg2 option.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit b4cf9ad777)
This commit is contained in:
committed by
Tim Abbott
parent
0dbc3917ef
commit
4a618ed973
@@ -9,7 +9,7 @@ from django.template.loaders import app_directories
|
||||
|
||||
import zerver.lib.logging_util
|
||||
from scripts.lib.zulip_tools import get_tornado_ports
|
||||
from zerver.lib.db import TimeTrackingConnection
|
||||
from zerver.lib.db import TimeTrackingConnection, TimeTrackingCursor
|
||||
|
||||
from .config import (
|
||||
DEPLOY_ROOT,
|
||||
@@ -287,6 +287,7 @@ DATABASES: Dict[str, Dict[str, Any]] = {
|
||||
"CONN_MAX_AGE": 600,
|
||||
"OPTIONS": {
|
||||
"connection_factory": TimeTrackingConnection,
|
||||
"cursor_factory": TimeTrackingCursor,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user