Re: Grouping by date range

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Grouping by date range
Дата
Msg-id 20030819181831.GB4939@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: Grouping by date range  (Jeffrey Melloy <jmelloy@visualdistortion.org>)
Список pgsql-general
On Tue, Aug 19, 2003 at 12:07:57PM -0500, Jeffrey Melloy wrote:
> Alexander Litvinov wrote:
>
> >if you need to handle large number of rows try to add columns with year
> >and month, write triggers for filling this columns, make indexes and
> >things should be fast.
>
> Is this the only way to do it?  I was running into this problem, too.
> It would be nice if the function indexes could handle things like
> 'date_part('month', <columname>)

That's why they can in the upcoming 7.4...  In the meantime I think you
can create an index using a function that has the constants inline, i.e.
a function date_part_month(), etc.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Es filosofo el que disfruta con los enigmas" (G. Coli)

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Why lower's not accept an AS declaration ?
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: move to usenet?