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

Fix AttributeError 'PLyPlan' object has no attribute 'execute' #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drewdogg
Copy link

Trying to run the aws_s3.table_import_from_s3 function on PostgreSQL 9.x causes the following error:

ERROR:  AttributeError: 'PLyPlan' object has no attribute 'execute' (plpy_elog.c:121)
CONTEXT:  Traceback (most recent call last):
  PL/Python function "table_import_from_s3", line 7, in <module>
    return plan.execute(
PL/Python function "table_import_from_s3"

According to the current documentation, plpy.execute(plan [, arguments [, max-rows]]) can be called instead, which is compatible with current and older versions of Postgres.

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.

None yet

1 participant