Skip to content

ADT identifiers can be truncated #366

Description

@tomsmalley

Using deeply nested ADTs or types with long names can cause postgres to truncate them, emitting warnings like:

NOTICE: identifier "SomeReallyLongIdentifier/etc" will be truncated to "SomeReallyLongIden"

The truncation length is adjustable, defaulting to 63 bytes, and described here https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS.

Relevant example in the rel8 docs: https://hackage.haskell.org/package/rel8-1.6.0.0/docs/Rel8.html#g:19

Ideally this wouldn't happen (rel8 avoids generating very long identifiers) but at least it should be called out in the docs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions