Skip to content
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

Bring back psycopg2-binary as dependency instead of psycopg #28316

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Dec 12, 2022

The psycopg dependency is slightly more optimized than than the binary one, but the problems it creates when it is used as dependency are numerous - it always expects to compile the psycopg dependencies, so you cannot install it when there are no build-essentials installed and on some systems additional libraries are needed.

We introduced it in #25710 for optimisation reasons.

However, the optimisations it brings are not really justified with the installation complexities it introduces, that's why we revert it.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

The psycopg dependency is slightly more optimized than than the
binary one, but the problems it creates when it is used as
dependency are numerous - it always expects to compile the
psycopg dependencies, so you cannot install it when there are no
build-essentials installed and on some systems additional libraries
are needed.

We introduced it in apache#25710 for optimisation reasons.

However, the optimisations it brings are not really justified with the
installation complexities it introduces, that's why we revert it.
@ferruzzi
Copy link
Contributor

Saw your convo on Slack, looks like a pretty straight-forward PR 👍

Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ease of install ftw.

@potiuk potiuk merged commit cfd8bd9 into apache:main Dec 12, 2022
@potiuk potiuk deleted the bring-back-psycopg-binary branch December 12, 2022 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants