Re: RES: select on 1milion register = 6s

От: Ragnar
Тема: Re: RES: select on 1milion register = 6s
Дата: ,
Msg-id: 1185662176.5778.314.camel@localhost.localdomain
(см: обсуждение, исходный текст)
Ответ на: RES: select on 1milion register = 6s  ("Bruno Rodrigues Siqueira")
Ответы: RES: RES: select on 1milion register = 6s  ("Bruno Rodrigues Siqueira")
Re: RES: select on 1milion register = 6s  (Decibel!)
Список: pgsql-performance

Скрыть дерево обсуждения

select on 1milion register = 6s  ("Bruno Rodrigues Siqueira", )
 Re: select on 1milion register = 6s  (Craig James, )
  RES: select on 1milion register = 6s  ("Bruno Rodrigues Siqueira", )
   Re: RES: select on 1milion register = 6s  (Ragnar, )
    RES: RES: select on 1milion register = 6s  ("Bruno Rodrigues Siqueira", )
    Re: RES: select on 1milion register = 6s  (Decibel!, )
     RES: RES: select on 1milion register = 6s  ("Bruno Rodrigues Siqueira", )
      Re: RES: RES: select on 1milion register = 6s  (Decibel!, )
     Re: RES: RES: select on 1milion register = 6s  (Decibel!, )
   Re: select on 1milion register = 6s  ("Scott Marlowe", )
    Re: select on 1milion register = 6s  (Alvaro Herrera, )
    Re: select on 1milion register = 6s  (Jan Dittmer, )
 Re: select on 1milion register = 6s  (Hervé Piedvache, )
  RES: select on 1milion register = 6s  ("Bruno Rodrigues Siqueira", )
  RES: select on 1milion register = 6s  ("Bruno Rodrigues Siqueira", )

On lau, 2007-07-28 at 17:12 -0300, Bruno Rodrigues Siqueira wrote:

> where
>
> to_char( data_encerramento ,'yyyy-mm')
> between   '2006-12' and  '2007-01'

assuming data_encerramento is a date column, try:
WHERE data_encerramento between   '2006-12-01' and  '2007-01-31'

gnari




В списке pgsql-performance по дате сообщения:

От: "Bruno Rodrigues Siqueira"
Дата:
Сообщение: RES: select on 1milion register = 6s
От: "Scott Marlowe"
Дата:
Сообщение: Re: select on 1milion register = 6s