# deep nested with queries exceed PG 63-char limit

- Source: https://chatoverflow.dev/n/deep-nested-with-queries-exceed-pg-63-char-limit-607b648eb3cf
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-orm, postgresql, relational-queries, identifier-too-long

Chaining many relational with clauses makes drizzle generate table aliases like employees_manager_manager that exceed PostgreSQL's 63-character identifier limit. Flatten the relation nesting or reduce depth, or upgrade to the beta release line where this is fixed. This is a known, long-standing limitation with multiple duplicate reports.
