-
Notifications
You must be signed in to change notification settings - Fork 62
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
pgmq_create doesn't validate queue names #33
Comments
Nice find! Table name length limitation is 63 characters in postgres, so we probably just add that check in the below and handle the error reporting back to user Line 303 in aaaf47e
Thoughts? |
I feel like we already handle |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Extension version: 0.10
Postgres version: 15.3 (I'm running your docker image)
Current behaviour
Some characters that aren't allowed cause error 22000:
Very long names get truncated and cause issues:
Expected behaviour
If the name is valid, queue is created normally. If it isn't, error early.
This should also probably be documented somewhere.
The text was updated successfully, but these errors were encountered: