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

Determine level of effort to replace libpq with native chapel #22

Open
buddha314 opened this issue Apr 25, 2018 · 5 comments
Open

Determine level of effort to replace libpq with native chapel #22

buddha314 opened this issue Apr 25, 2018 · 5 comments

Comments

@buddha314
Copy link
Collaborator

We appear to be having issues with libpq and contention locking in CDO. If that is unresolvable (and expect a ticket to examine that) we should try to determine the LOE (Level of Effort) on building a native Chapel postgres driver that does not include libpq.

@ben-albrecht
Copy link
Collaborator

ben-albrecht commented Apr 25, 2018

Is this the source of libpq?

@marcoscleison
Copy link
Collaborator

yes, although I use it from my ubuntu repository.

@marcoscleison
Copy link
Collaborator

At first, I would like to know if the issue is in CDO. But if it is in the interaction between Chapel and libpq have the opportunity to develop a native driver of the postgres in Chapel.
Pros:
It allows better integration.
it allows safer use in a parallel environment.
it has wire protocol documentation.
Cons:
Takes time
Needs a thread-safe TCP client example in Chapel.
Needs auxiliary modules like base64 encoder decoder.
Although postgres wire protocol is not hell difficult it is not trivial.

I am motivated to develop the native driver, but I will need to have some help with some specifics things.

@ben-albrecht
Copy link
Collaborator

It's probably worth spending more time understanding the bug in #23 before rewriting libpq in Chapel. For example, it's not clear to me if rewriting libpq in Chapel would resolve this issue, based on the info currently available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants