I get an error like this: ATTENTION: The identifier "XXXxxx" will be truncated to "XXX. Is there a simple way to fix this error without any changes in the source code (I'm talking about NAMEDATALEN)? I guess there is not but I still wanted to ask..
You need to recompile PostgreSQL to change NAMEDATALEN (and also re-initialize your database).