Em 2 de junho de 2017 12:32, Alexsander Rosa <alexsander.r...@gmail.com> escreveu: > > 2017-06-02 11:50 GMT-03:00 Flavio Henrique Araque Gurgel <fha...@gmail.com >: >> >> Para de bagunça a lista, pelamor..... >> A gente responde LÁ EMBAIXO ! olha só: > > > Coloquei STABLE e não mudou nada: > EXPLAIN (ANALYZE, TIMING, BUFFERS) SELECT sp_teste('43170605563868000113657010000004061895261728'); > QUERY PLAN
> ------------------------------------------------------------------------------------------ > Result (cost=0.00..0.26 rows=1 width=0) (actual time=1478.944..1478.944 rows=1 loops=1) > Buffers: shared hit=18731 read=123491 > Total runtime: 1478.955 ms > (3 rows) > Roda o ajuste abaixo (além do STABLE) e roda novamente o teste: ALTER FUNCTION sp_teste(text) COST 10; Att, -- Fabrízio de Royes Mello Timbira - http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
_______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral