Re: index over timestamp not being used

Поиск
Список
Период
Сортировка
От Arnau
Тема Re: index over timestamp not being used
Дата
Msg-id 46A6537B.6010604@andromeiberica.com
обсуждение исходный текст
Ответ на Re: index over timestamp not being used  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: index over timestamp not being used  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Hi Tom,

>
> Alternatively, do you really need to_timestamp at all?  The standard
> timestamp input routine won't have any problem with that format:
>     t.timestamp_in >= '20070101'

This is always I think I'm worried, what happens if one day the internal
format in which the DB stores the date/timestamps changes. I mean, if
instead of being stored as YYYYMMDD is stored as DDMMYYYY, should we
have to change all the queries? I thought the
to_char/to_date/to_timestamp functions were intented for this purposes


--
Arnau

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: index over timestamp not being used
Следующее
От: Tom Lane
Дата:
Сообщение: Re: index over timestamp not being used