Skip to content

Is PG15 Supported #18

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
luss opened this issue Sep 9, 2022 · 11 comments
Closed

Is PG15 Supported #18

luss opened this issue Sep 9, 2022 · 11 comments

Comments

@luss
Copy link
Contributor

luss commented Sep 9, 2022

PG 15 is presently at Beta4 and is expected to be RC & then GA in the next month or two. Does Multicorn2 support it?

@luss
Copy link
Contributor Author

luss commented Sep 9, 2022

Yes, it's a work in process. Affan Salman is a new committer for this project and he has checked in a fix that allows us to build cleanly for PG15. I have tagged v2.4 that includes Affan's commit plus the work that Shaheed has been doing. Let the testing begin!!

@devrimgunduz
Copy link

Any updates?

@wieck
Copy link
Collaborator

wieck commented Oct 28, 2022 via email

@luss
Copy link
Contributor Author

luss commented Oct 31, 2022 via email

@luss
Copy link
Contributor Author

luss commented Nov 6, 2022

For this multicorn2 project, pg15 works as good as pg14 does. They both have a performance regression that hasn't been found yet. Pieces of the WHERE clause are not being pushed down in some cases they were in pg12 & pg13 in the original multicorn project.

@ShaheedHaque
Copy link
Collaborator

For this multicorn2 project, pg15 works as good as pg14 does.

Given that, can a release be cut please?

@AnkilMPatel
Copy link

Still While installing on PG15 Multicorn2, We got ERROR: Error in python: ModuleNotFoundError
DETAIL: No module named 'multicorn'
please help me

@AnkilMPatel
Copy link

@luss Not the above error is resolved but a new error is coming:
ERROR: Error in python: AttributeError
DETAIL: module 'multicorn' has no attribute 'get_class'
SQL state: XX000

@ShaheedHaque
Copy link
Collaborator

Try looking in your PG server log. It may contain a stack trace that will be helpful

@ShaheedHaque
Copy link
Collaborator

ShaheedHaque commented Sep 20, 2023

@luss Not the above error is resolved but a new error is coming:
ERROR: Error in python: AttributeError
DETAIL: module 'multicorn' has no attribute 'get_class'
SQL state: XX000

I've just hit this error too...it appears to be related to some other/bogus package called "multicorn":

$ pip3 show multicorn
Name: multicorn
Version: 0.1.0
Summary: 
Home-page: 
Author: An Long
Author-email: [email protected]
License: MIT
Location: /usr/lib/python3/dist-packages
...

This appears to be some kind of Web server/service, and is obviously clashing with the multicorn we expect.

The proximate cause seems to be that pip ends up using the wrong version of setuptools, and ends up NOT installing "our" multicorn but a package called UNKNOWN:

$ make
$ sudo make install
...
pip3.10 install  .
Processing /home/ubuntu/multicorn2-main
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: UNKNOWN
  Building wheel for UNKNOWN (pyproject.toml) ... done
  Created wheel for UNKNOWN: filename=UNKNOWN-2.4-py3-none-any.whl size=1717 sha256=18dbaf25261e1ec673f579e1a0f239ee2581b7edef17c022cb14c4cdb182e66e
  Stored in directory: /root/.cache/pip/wheels/6d/cc/9b/8258a774060bcaa44b3e00e5b4af15b4946801ab9c7ec58c47
Successfully built UNKNOWN
Installing collected packages: UNKNOWN
  Attempting uninstall: UNKNOWN
    Found existing installation: UNKNOWN 2.4
    Uninstalling UNKNOWN-2.4:
      Successfully uninstalled UNKNOWN-2.4
Successfully installed UNKNOWN-2.4

Then, in my case, another part of the installation containing the actual FDW - which depends on multicorn - ends up installing the other/"bogus" multicorn via pip.

The root cause appears to be pypa/setuptools#3291 and pypa/pip#6264. The real solution is not especially clear, but specifying "--no-build-isolation" during our install seems to sidestep the problem. I will do a bit more testing before proposing that as a fix.

@luss
Copy link
Contributor Author

luss commented Sep 25, 2023

Pg15 is supported so I am closing this issue. A specific installation problem in one environment should be opened as a specific siiue.

@luss luss closed this as completed Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants