Remove psycopg2 completely.

This commit is contained in:
Khushboo Vashi
2023-03-20 16:57:30 +05:30
committed by GitHub
parent f43b3b0ce5
commit 366dd3a973
23 changed files with 48 additions and 4630 deletions

View File

@@ -303,10 +303,7 @@ LOG_ROTATION_MAX_LOG_FILES = 90 # Maximum number of backups to retain
##########################################################################
# The default driver used for making connection with PostgreSQL
if sys.version_info < (3, 7):
PG_DEFAULT_DRIVER = 'psycopg2'
else:
PG_DEFAULT_DRIVER = 'psycopg3'
PG_DEFAULT_DRIVER = 'psycopg3'
# Maximum allowed idle time in minutes before which releasing the connection
# for the particular session. (in minutes)