[Django] #32856: Django 2.2 not compatible with psycopg 2.9

32 views
Skip to first unread message

Django

unread,
Jun 16, 2021, 9:42:16 PM6/16/21
to django-...@googlegroups.com
#32856: Django 2.2 not compatible with psycopg 2.9
--------------------------------------------+------------------------
Reporter: Daniele Varrazzo | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------------+------------------------
Psycopg 2.9 passes a timedelta instead of an int number of minutes to the
tzinfo_factory object. Before making this change I looked at the Django
source to check some problems and didn't find any in master, but I missed
to check previous releases.

The issue has been reported in
https://github.com/psycopg/psycopg2/issues/1293

It is not immediate to me how to fix the problem while fixing
https://github.com/psycopg/psycopg2/issues/1272, so I will propose a MR to
fix the problem in Django.

--
Ticket URL: <https://code.djangoproject.com/ticket/32856>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 16, 2021, 9:47:25 PM6/16/21
to django-...@googlegroups.com
#32856: Django 2.2 not compatible with psycopg 2.9
----------------------------------+--------------------------------------

Reporter: Daniele Varrazzo | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------

Comment (by Daniele Varrazzo):

Proposed MR https://github.com/django/django/pull/14530

--
Ticket URL: <https://code.djangoproject.com/ticket/32856#comment:1>

Django

unread,
Jun 17, 2021, 8:51:50 AM6/17/21
to django-...@googlegroups.com
#32856: Django 2.2 not compatible with psycopg 2.9
----------------------------------+--------------------------------------

Reporter: Daniele Varrazzo | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by Daniele Varrazzo):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/32856#comment:2>

Django

unread,
Jun 21, 2021, 5:35:57 AM6/21/21
to django-...@googlegroups.com
#32856: Django 2.2 not compatible with psycopg 2.9
-------------------------------------+-------------------------------------

Reporter: Daniele Varrazzo | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: 2.2
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: psycopg2 | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* keywords: => psycopg2
* resolution: => wontfix
* status: new => closed
* component: Uncategorized => Database layer (models, ORM)
* type: Uncategorized => New feature


Comment:

Django 2.2 is in extended support so it doesn't get new features anymore.
I've prepared [https://github.com/django/django/pull/14547 PR] with docs
clarification.

--
Ticket URL: <https://code.djangoproject.com/ticket/32856#comment:3>

Django

unread,
Jun 21, 2021, 7:07:18 AM6/21/21
to django-...@googlegroups.com
#32856: Django 2.2 not compatible with psycopg 2.9
-------------------------------------+-------------------------------------

Reporter: Daniele Varrazzo | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: 2.2
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: psycopg2 | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"837ffcfa681d0f65f444d881ee3d69aec23770be" 837ffcfa]:
{{{
#!CommitTicketReference repository=""
revision="837ffcfa681d0f65f444d881ee3d69aec23770be"
[2.2.x] Refs #32856 -- Doc'd that psycopg2 < 2.9 is required.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32856#comment:4>

Django

unread,
Nov 3, 2021, 3:42:44 AM11/3/21
to django-...@googlegroups.com
#32856: Django 2.2 not compatible with psycopg 2.9
-------------------------------------+-------------------------------------

Reporter: Daniele Varrazzo | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: 2.2
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: psycopg2 | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"12141e3116a5df647aff451d47fd27de2bec6394" 12141e31]:
{{{
#!CommitTicketReference repository=""
revision="12141e3116a5df647aff451d47fd27de2bec6394"
[2.2.x] Refs #32856 -- Clarified that psycopg2 < 2.9 is required.

Follow up to 837ffcfa681d0f65f444d881ee3d69aec23770be.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32856#comment:5>

Reply all
Reply to author
Forward
0 new messages