Skip to content

Requirement: upgrade psycopg to version 3.1.8 or higher #10596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
humitos opened this issue Aug 2, 2023 · 5 comments · Fixed by #10667 or #11432
Closed

Requirement: upgrade psycopg to version 3.1.8 or higher #10596

humitos opened this issue Aug 2, 2023 · 5 comments · Fixed by #10667 or #11432
Assignees
Labels
Accepted Accepted issue on our roadmap Improvement Minor improvement to code

Comments

@humitos
Copy link
Member

humitos commented Aug 2, 2023

Django 4.2 supports a psycopg version 3.1.8 or higher. We should be able to upgrade once we are fully migrated.

Requires:

@humitos humitos added Improvement Minor improvement to code Accepted Accepted issue on our roadmap labels Aug 2, 2023
@github-project-automation github-project-automation bot moved this to Planned in 📍Roadmap Aug 2, 2023
@humitos
Copy link
Member Author

humitos commented Aug 26, 2023

I took a look at the differences in https://www.psycopg.org/psycopg3/docs/basic/from_pg2.html and I didn't find anything that could affect us directly. So, I think we are good to move forward with this.

humitos added a commit that referenced this issue Aug 26, 2023
Now we are on Django 4.2 we can use the latest version of psycopg.

Closes #10596
@github-project-automation github-project-automation bot moved this from Planned to Done in 📍Roadmap Sep 1, 2023
humitos added a commit that referenced this issue Sep 1, 2023
Now we are on Django 4.2 we can use the latest version of psycopg.

Closes #10596
@humitos
Copy link
Member Author

humitos commented Sep 5, 2023

Figure it out why New Relic agent is not compatible with psycopg>=3. See #10713

@humitos humitos reopened this Sep 5, 2023
@github-project-automation github-project-automation bot moved this from Done to In progress in 📍Roadmap Sep 5, 2023
@humitos humitos moved this from In progress to Planned in 📍Roadmap Sep 5, 2023
@humitos
Copy link
Member Author

humitos commented Jan 17, 2024

We are looking into adding psycopg3 as a supported framework. Unfortunately, we cannot commit to releasing that this coming quarter (but we're really hoping for the following quarter).

(from newrelic/newrelic-python-agent#585)

@humitos
Copy link
Member Author

humitos commented Jun 11, 2024

New Relic people already merged the PR that implements support for psycopg3, so it may be included in the next release. After that, we will be able to upgrade to psycopg3. See newrelic/newrelic-python-agent#1155

@humitos
Copy link
Member Author

humitos commented Jun 17, 2024

Next release we will include NR 9.11.0 which includes support for psycopg3+, so we are ready to upgrade this package now.

humitos added a commit that referenced this issue Jun 20, 2024
We attempt to upgrade this some time ago (in #10667) but we reverted it later
since New Relic Python client wasn't compatible with it.

The newer version of New Relic that we are already using added compatibility and
should log database transactions properly now.

Closes #10596
@humitos humitos moved this from Planned to Needs review in 📍Roadmap Jun 20, 2024
@github-project-automation github-project-automation bot moved this from Needs review to Done in 📍Roadmap Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Improvement Minor improvement to code
Projects
Archived in project
1 participant