-
Notifications
You must be signed in to change notification settings - Fork 590
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
support specifying varchar lengths #17037
Comments
not null
Ignoring |
I agree I am considering it after a second thought. Hoping that Github can allow tagging issues with "paused" label. 😢 |
|
not null
When the length is 255 or 65535, it is likely the user did not think about it and just had to put in a placeholder value. Other length limits may be intentional. |
Is your feature request related to a problem? Please describe.
We don't have to actually limit the max length for varchars. The idea is to omit the length parameter while accepting it at the frontend, so that we won't encounter errors when ecosystems tools try to create tables in the traditional PG way.
For example, database migration tools typically create temporary tables in databases to track execution histories.
Here's a table created by Liquibase:
Describe the solution you'd like
Accept the max length parameter, but omit it and return a notice clarifying that the length constraint won't be actually applied to the column.
Describe alternatives you've considered
We can provide a session-level configuration to enable/disable the compatibility.
Additional context
No response
The text was updated successfully, but these errors were encountered: