Re: Query performance problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query performance problem
Дата
Msg-id 22878.1093019688@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query performance problem  ("Danilo Mota" <dmota@nexen.com.br>)
Список pgsql-performance
"Danilo Mota" <dmota@nexen.com.br> writes:
> SELECT
>  rc.pkcliente
> FROM r_cliente AS rc
> INNER JOIN sav_cliente_lg AS sc ON sc.cpfcnpj = sc.cpfcnpj;

Surely you meant
  INNER JOIN sav_cliente_lg AS sc ON rc.cpfcnpj = sc.cpfcnpj;

I would also venture that your statistics are desperately out of date,
because if the planner's estimates are close to reality, even this
unconstrained-cross-product join shouldn't have taken that long.

            regards, tom lane

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

Предыдущее
От: "Danilo Mota"
Дата:
Сообщение: Query performance problem
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Query performance problem