Special Date/Time Inputs

Поиск
Список
Период
Сортировка
От Tomasz Myrta
Тема Special Date/Time Inputs
Дата
Msg-id 3E50BF12.4020909@klaster.net
обсуждение исходный текст
Ответы Re: Special Date/Time Inputs  ("A.Bhuvaneswaran" <bhuvansql@myrealbox.com>)
Список pgsql-sql
Hi
How do you use Special Date/Time Inputs described in Table 5.14 
(Postgresql documentation)?
It looks like only now() works. When I try to select epoch() I get 
error, that such function doesn't exist.

Anyway it came from another problem:
I have table with millions records indexed on timestamp. I tried to 
speed up using this table, so I changed timestamp into 
seconds-since-epoch (integer). What do you think about it?
Is there a better way to convert this field back into timestamp than 
'1970-01-01'::timestamp+cast(field || ' seconds' as interval) ?

Regards,
Tomasz Myrta




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

Предыдущее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Re: is current_timestamp unique for a transaction?
Следующее
От: "A.Bhuvaneswaran"
Дата:
Сообщение: Re: Special Date/Time Inputs