We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I'm using the latest from master, as I wanted to add some functionality (See #3)
But I'm currently getting this error if I leave send_at_once to false.
send_at_once
activerecord-copy.rb:49:in `put_copy_data': no COPY in progress (PG::Error)
Everything works well if I put send_at_once to true
The text was updated successfully, but these errors were encountered:
it usually happens after the 6th row have been saved.
Sorry, something went wrong.
I suspect that the issue is that row I'm trying to insert is too big.
Therefore in this line
https://github.com/pganalyze/activerecord-copy/blob/master/lib/activerecord-copy.rb#L48-L50
The io returned by get_intermediate_io is too big, to be put in one call.
get_intermediate_io
I've found what was causing the error. I was calling the database for something else in my block. and that interrupts the copy.
Sorry
No branches or pull requests
Hello,
I'm using the latest from master, as I wanted to add some functionality (See #3)
But I'm currently getting this error if I leave
send_at_once
to false.Everything works well if I put
send_at_once
to trueThe text was updated successfully, but these errors were encountered: