jrgemignani commented on issue #1986: URL: https://github.com/apache/age/issues/1986#issuecomment-2244038082
@MironAtHome Good find! This one is due to the usage of the PG type `Name`, see below. It looks like we'll either have to limit names to `NAMEDATALEN` or use a different method. It appears that whomever used `Name` in this case either didn't realize the drawbacks or didn't expect it to ever be longer than `NAMEDATALEN`. ``` /* * Maximum length for identifiers (e.g. table names, column names, * function names). Names actually are limited to one fewer byte than this, * because the length must include a trailing zero byte. * * Changing this requires an initdb. */ #define NAMEDATALEN 64 ``` ``` /* * Representation of a Name: effectively just a C string, but null-padded to * exactly NAMEDATALEN bytes. The use of a struct is historical. */ typedef struct nameData { char data[NAMEDATALEN]; } NameData; typedef NameData *Name; ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@age.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org