| От | Fernando Hevia |
|---|---|
| Тема | Re: First day of month, last day of month |
| Дата | |
| Msg-id | 024501c8a625$4590fdf0$8f01010a@iptel.com.ar обсуждение исходный текст |
| Ответ на | Re: First day of month, last day of month ("Scott Marlowe" <scott.marlowe@gmail.com>) |
| Список | pgsql-sql |
> -----Mensaje original-----
> De: Scott Marlowe [mailto:scott.marlowe@gmail.com]
>
>
> Note that if you are storing your time stamp as timestamptz,
> you can use the "at time zone 'xyz'" construct to create an
> index, and as long as you retrieve them with the same
> construct you'll get to use the index.
>
> create index test_ts_month_trunc on testtable
> (date_trunc('month',(ts at time zone 'MST')));
> select * from testtable
> where date_trunc('month',(ts at time zone 'MST'))='2007-10-01
00:00:00'::timestamp;
>
I see the point. Thanks for the elaboration.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера