Re: Postgres not using array

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Postgres not using array
Дата
Msg-id 23465.1219328880@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Postgres not using array  (André Volpato<andre.volpato@ecomtecnologia.com.br>)
Ответы Re: Postgres not using array  (André Volpato<andre.volpato@ecomtecnologia.com.br>)
Список pgsql-performance
=?ISO-8859-1?Q?Andr=E9_Volpato?= <andre.volpato@ecomtecnologia.com.br> writes:
> Explain output:
>  HashAggregate  (cost=19826.23..19826.96 rows=73 width=160) (actual
> time=11826.754..11826.754 rows=0 loops=1)
>    ->  Subquery Scan b2  (cost=19167.71..19817.21 rows=722 width=160)
> (actual time=11826.752..11826.752 rows=0 loops=1)
>          Filter: (bds_internacoes(200805, 200806, (b2.cod)::text,
> 'qtdI'::text, 'P'::bpchar) >= 1::numeric)
>          ->  Limit  (cost=19167.71..19248.89 rows=2165 width=48) (actual
> time=415.157..621.043 rows=28923 loops=1)

So I guess the question is "what is the bds_internacoes function, and
why is it so slow?"

            regards, tom lane

В списке pgsql-performance по дате отправления:

Предыдущее
От: Mark Mielke
Дата:
Сообщение: Re: Postgres not using array
Следующее
От: "Scott Carey"
Дата:
Сообщение: Re: Slow query with a lot of data