2009/4/22 Marcelo Giovane <[email protected]>: > Olá pessoal, > qual a quantdade máxima de caracteres para o comando listem, unlisten e > notify. > No manual, quanto a listen, informa 31 caracteres. > Para unlisten, a informação refere-se a 32 caracteres. > Mas nos meus testes, a audição e notificação com 40 caracteres tem retornado > 40 caracteres. > E aí? >
Tanto o LISTEN quanto o NOTIFY fazem referência a um identificador e, segundo o manual [1], um identificador tem comprimento NAMEDATALEN-1 e por default NAMEDATALEN tem valor 64 (portanto o tamnho máximo de um identificador é 63), mas como está dito no manual "If this limit is problematic, it can be raised by changing the NAMEDATALEN constant in src/include/pg_config_manual.h". [1] http://www.postgresql.org/docs/current/interactive/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS Osvaldo _______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
