| От | David Salisbury |
|---|---|
| Тема | Fwd: Re: Dynamic update of a date field |
| Дата | |
| Msg-id | 4F3D846D.3010803@globe.gov обсуждение исходный текст |
| Ответы |
Re: Fwd: Re: Dynamic update of a date field
|
| Список | pgsql-general |
On 2/16/12 7:27 AM, Andreas Kretschmer wrote: > Musial, Jan (GIUB)<jan.musial@giub.unibe.ch> wrote: >> smallint,month smallint,day smallint,time_stamp date); I would like to > > That's silly, use one (and only one) field, timestamp (or timestamptz) > Don't use never ever multiple columns for the same information! Would it not be advantageous to replicate information in the above form if you wanted to, say, get all records in the month of May, and therefore create an index on the month field? I would think that would be more efficient than creating a functional index on a timestamp. And if you're not too picky, that would give an index that couldn't be done on a timestamptz field, as that's mutable. -ds
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера