#27966: db.backends.postgresql checks for psycopg2 2.4.5, but actually 2.5 is
required
-------------------------------------+-------------------------------------
Reporter: karyon | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.11
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham):
I think we must increases the minimum psycopg2 version to 2.5.4, due to
the server-side cursors patch, f3b7c059367a4e82bbfc7e4f0d42b10975e79f0c.
Running Django's test suite gives these errors:
psycopg2 < 2.5, e.g. 2.4.6
{{{
File "/home/tim/code/django/django/db/backends/postgresql/base.py", line
213, in create_cursor
cursor = self.connection.cursor(name, scrollable=False,
withhold=self.connection.autocommit)
TypeError: 'scrollable' is an invalid keyword argument for this function
}}}
2.5 ≤ psycopg2 < 2.5.4
{{{
File "/home/tim/code/django/django/db/models/query.py", line 50, in
__iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
File "/home/tim/code/django/django/db/models/sql/compiler.py", line 876,
in execute_sql
cursor.close()
psycopg2.OperationalError: cursor "_django_curs_140304550061888_1" does
not exist
}}}
Is there value in the cursor patch if that's the case?
--
Ticket URL: <https://code.djangoproject.com/ticket/27966#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.df92fdd730dc100760d4a120ff54d08c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.