-
Notifications
You must be signed in to change notification settings - Fork 171
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
Confusion around PG::InvalidChangeOfResultFields error #468
Comments
The error InvalidChangeOfResultFields originates from here: Lines 1481 to 1482 in 766c175
The expectation that the number of columns shouldn't change originates from here: https://www.postgresql.org/docs/current/libpq-single-row-mode.html where it's stated:
If I remember correctly, I didn't find a way to trigger that error, so that there is no spec to it. So congrats on finding such a case! 😅 |
…he number of fields This is related to ged#468
It wasn't too difficult to find a test case. I'd like to add such a test case and extend the error message while being over it in #469. Could it be that you have another query in |
@coffenbacher Did you find the root cause for InvalidChangeOfResultFields error? Can the ticket be closed? |
Hi @larskanis, this ticket can be closed, thanks! Unfortunately I never found out much more about what was going on. I think restarting my server resolved it IIRC. |
I seem to have stumbled across a rather unique error, so I'm having trouble finding information on Google about it.
For background, I'm using
.stream_each
to stream data out of a WAL slot so that I can process it:This is yielding this error:
I am struggling to gather more debug information because it is currently only happening in production, and it seems like the automatic retries we have configured allow the tricky data to succeed subsequently.
I am also not particularly sure what the semantic meaning of the error is: there is really only a single field (
data
) returned by the query so I'm confused how it's changing.If it helps at all, I believe that this error was first seen soon after running a migration to add or remove a column.
Any information about what the error means or how to address it would be most welcome.
The text was updated successfully, but these errors were encountered: