Re: timestamp with time zone tutorial

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dennis Gearon <gearond(at)sbcglobal(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: timestamp with time zone tutorial
Date: 2009-07-20 03:00:21
Message-ID: 15801.1248058821@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dennis Gearon <gearond(at)sbcglobal(dot)net> writes:
> What I want is to be able to insert into my project's database, times given by anybody anywhere on the planet (the SUBMITTER), add the appropriate timezone in the insert statement so that it in 'GMT/UMT' neutral'. I believe this is the way Postgres does it, storing times in GMT time.

So just do it. What do you need to_timestamp for? The basic
timestamptz input function is far more likely to get it right
for input that's not in a precise predetermined format.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Phoenix Kiula 2009-07-20 03:45:40 First query very slow. Solutions: memory, or settings, or SQL?
Previous Message Alvaro Herrera 2009-07-20 02:57:51 Re: Autovacuum and pg_stat_reset()