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

sql: COPY can't run outside of a transaction #13395

Closed
knz opened this issue Feb 3, 2017 · 0 comments
Closed

sql: COPY can't run outside of a transaction #13395

knz opened this issue Feb 3, 2017 · 0 comments
Assignees
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.

Comments

@knz
Copy link
Contributor

knz commented Feb 3, 2017

Using the attached input file import.sql.txt with psql one runs into the following error:

ERROR: txn: memory budget exceeded: 8 bytes requested, 0 bytes in budget

This is because the COPY statement binds its account to the transaction's memory monitor, and that is not yet initialized for an implicit transaction by the time the COPY statement is run (it runs somewhat earlier than the rest in execRequest).

Reported by @sploiselle

@knz knz added the C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. label Feb 3, 2017
@knz knz self-assigned this Feb 3, 2017
@knz knz closed this as completed in #13400 Feb 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Projects
None yet
Development

No branches or pull requests

1 participant