Leonel Freire escreveu: > > Obtive esta falha a pouco tempo. Ao tentar inserir no POSTGRESQL um > texto muito grande obtive o erro: Query failed: ERROR: index row > requires 43056 bytes, maximum size is 8191. > Por que você quer criar um índice 'btree' em um campo texto tão grande? Como indica a mensagem de erro, índices 'btree' são limitados a 8K. Não faz sentido indexar tanto texto já que você não fará: select a,b from foo where campotexto = '...meu texto enorme aqui...'; Se mesmo assim você precisa de um índice neste campo, utilize busca textual (aka full text search) [1].
[1] http://www.postgresql.org/docs/8.3/static/textsearch.html -- Euler Taveira de Oliveira http://www.timbira.com/ _______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
