Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Limit the identifier names to 63 characters. #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

meadmaker
Copy link

PostgreSQL comes with a compile-time default maximum length of 63 characters for identifier names. If we take the DataObjects default of 128 characters, then PostgreSQL will 'helpfully' and silently truncate our identifier name (say, the name of a constraint) upon creation. This has an unfortunate effect of making any subsequent call to manipulate the object identified by more than 63 characters fail, since the object by the longer name does not exist. So, limit this to 63 characters.

PostgreSQL comes with a compile-time default maximum length of 63 characters for identifier names.  If we take the DataObjects default of 128 characters, then PostgreSQL will 'helpfully' and silently truncate our identifier name (say, the name of a constraint) upon creation.  This has an unfortunate effect of making any subsequent call to manipulate the object identified by more than 63 characters fail, since the object by the longer name does not exist.  So, limit this to 63 characters.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant