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

PlPython trampoline allows calls from plpython to multicorn FDW instance and vice versa. #250

Open
wants to merge 36 commits into
base: master
Choose a base branch
from

Conversation

rbiro
Copy link

@rbiro rbiro commented Mar 15, 2020

This wraps the insert calls and the commit calls in plpython so we can use plpy calls.

It passes minimal testing, so it's a good place to stop and ask for comments.

rbiro and others added 30 commits March 14, 2020 08:32
when we have a transaction context and can let plpython do most
of the work for us.
utils.py and to make sure the oid is passed in the modstate.  So far
it only attempts to support insert.  Once that is working, we can
extend it to the others without much trouble.
…e from

a foreign table oid.
Use utils.getInstaceByOID to call functions that don't thake
arguments.
…rampoline.

Simplified trampoline and wrapped the rest of the functions.
…safe.

Remebered to do an INCREF before returning a python object.
Fixed the python 2.7 tests to include the context line in the ouput.
… get the transaction memory

context as our base.  Otherwise we might not get a valid context.
@rbiro rbiro changed the title WIP Plpython trampoline PlPython trampoline allows calls from plpython to multicorn FDW instance and vice versa. Mar 16, 2020
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

Successfully merging this pull request may close these issues.

1 participant