From: Tomasz Myrta <jasiek@klaster.net>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Special Date/Time Inputs
Date: Mon, 17 Feb 2003 11:53:06 +0100
Message-ID: <3E50BF12.4020909@klaster.net> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jasiek@klaster.net
Subject: Re: Special Date/Time Inputs
In-Reply-To: <3E50BF12.4020909@klaster.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox