Re: generate_series woes

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: generate_series woes
Дата
Msg-id b42b73150804150715r83cad1doa166230ec509f0d@mail.gmail.com
обсуждение исходный текст
Ответ на generate_series woes  (Harald Fuchs <hari.fuchs@googlemail.com>)
Список pgsql-general
On Mon, Apr 14, 2008 at 5:21 AM, Harald Fuchs <hari.fuchs@googlemail.com> wrote:
> I think there's something sub-optimal with generate_series.
>  In the following, "documents" is a table with more than 120000 rows,
>  vacuumed and analyzed before the queries.

everything is working exactly as intended.  while it's obvious to you
that the generate series function returns a particular number of rows
based on your supplied inputs, it's not (yet) obvious to the planner.
your genser function supplies the hint the planner needs and it
adjusts the plan.  most set returning functions (particularly
non-immutable ones) are not so easy to determine the # of rows from
the input parameters anyways.

merlin

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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: Storage sizes for dates/times (documentation bug?)
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: Storage sizes for dates/times (documentation bug?)