pgroll icon indicating copy to clipboard operation
pgroll copied to clipboard

Add guards for names max length

Open exekias opened this issue 2 years ago • 1 comments

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 avatar Aug 25 '23 09:08 exekias

I would like to work on this one.

pucke-dev avatar Oct 12 '23 16:10 pucke-dev