Truncate This

Just stumbled across this little nugged from the PostgresSQL documention:

The system uses no more than NAMEDATALEN-1 characters of an identifier; longer names can be written in commands, but they will be truncated. By default, NAMEDATALEN is 64 so the maximum identifier length is 63. If this limit is problematic, it can be raised by changing the NAMEDATALEN constant in src/include/postgres_ext.h.


Err... yeah, I'd say that's problematic... if I specify a table in a query, I want to either query that table or be notified that it doesn't exist. Don't go modifying the table name on me...