Re: question about efficiency

Поиск
Список
Период
Сортировка
От
Тема Re: question about efficiency
Дата
Msg-id 49166.192.168.1.32.1037039664.squirrel@mainbox.archonet.com
обсуждение исходный текст
Ответ на Re: question about efficiency  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: question about efficiency  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
>> It's basically converted it into a three way join.
>
> More to the point, an *unconstrained* join between "claimsum2001
> as claimsum2001" and the intended joined table.  The reason it
> ran for so long was it was generating a huge number of rows ---
> as many as would be in the cross product.

Would it be possible to have some sort of configurable limit on this:

max_result_set_size = 10,000,000
max_result_set_action = ignore | debug | warn | error

The planner knows how many rows it's expecting to return, and a warning
message would show up unconstrained queries like this.

- Richard Huxton



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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Upgrade to dual processor machine?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Hardware estimation