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

Add guards for names max length #64

Open
exekias opened this issue Aug 25, 2023 · 1 comment · May be fixed by #275
Open

Add guards for names max length #64

exekias opened this issue Aug 25, 2023 · 1 comment · May be fixed by #275
Labels
bug Something isn't working

Comments

@exekias
Copy link
Member

exekias commented Aug 25, 2023

names in postgres have a max length of 63 chars by default. We generate names in many places, like:

  • Version schema names
  • Temporary table/column names
  • indices
  • triggers
  • etc

We should make sure we don't generate names longer than the expected max, as that could cause issues down the line.

https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS

@exekias exekias added the bug Something isn't working label Aug 25, 2023
@pucke-dev
Copy link
Contributor

I would like to work on this one.

@0del 0del linked a pull request Feb 5, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants