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

Postgres 14 bug breaks mq_poll #15

Open
agraven opened this issue Oct 5, 2021 · 0 comments
Open

Postgres 14 bug breaks mq_poll #15

agraven opened this issue Oct 5, 2021 · 0 comments

Comments

@agraven
Copy link
Contributor

agraven commented Oct 5, 2021

Assuming I've diagnosed the issue correctly, bug #16040 in postgres causes mq_poll to fail with error returned from database: query is not a SELECT. Here is the full relevant log snippet from my application:

Oct 02 16:56:25.792  INFO sqlx::query: SELECT * FROM mq_poll($1, …; rows: 0, elapsed: 1.119ms
SELECT
  *
FROM
  mq_poll($1, $2)
  
Oct 02 16:56:25.792 ERROR sqlxmq::runner: Failed to poll for messages: error returned from database: query is not a SELECT

I saw a potential workaround mentioned on Twitter, though I don't know if it's relevant here.

Edit: a fix for the bug has been pushed, so it's presumably just a matter of waiting for that to be released. I'll leave the issue open in case other people encounter it.

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

No branches or pull requests

1 participant