Pessoal,

Depois que fiz um analyze no banco e o reiniciei, o índice começou a ser
utilizado como esperado.

Index Scan using idx_tb_processo_nr_processo_ubd on tb_processo
 (cost=0.43..8.46 rows=30 width=240) (actual time=0.066..0.080 rows=1
loops=1)
  Index Cond: ((lower(to_ascii((nr_processo)::text)) >=
'0001949-27.2015.8.17.8201'::text) AND
(lower(to_ascii((nr_processo)::text)) < '0001949-27.2015.8.17.8202'::text))
  Filter: (lower(to_ascii((nr_processo)::text)) ~~
'0001949-27.2015.8.17.8201%'::text)
Total runtime: 0.125 ms

Gostaria de saber o motivo.
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a