| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Grzegorz Jaskiewicz <gj(at)pointblue(dot)com(dot)pl> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: how to add seconds to a TimestampTz |
| Date: | 2007-03-15 14:20:23 |
| Message-ID: | 20070315142023.GD5645@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Grzegorz Jaskiewicz wrote:
>
> On Mar 15, 2007, at 5:58 AM, Tom Lane wrote:
>
> >
> >? I'm not sure what would be the most convenient realization
> >of this at the C level, but please stay away from time_t ...
>
> what's wrong with time_t ? Does postgres has some sort of "time" API,
> that can be used instead?
Sure. See TimestampTz (as mentioned in the subject).
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2007-03-15 14:25:57 | Re: Additional global stats for pg_database? |
| Previous Message | Magnus Hagander | 2007-03-15 14:02:24 | Additional global stats for pg_database? |