Re: Automatic date/time

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: John Christopher <jcxxr(at)yahoo(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Automatic date/time
Date: 2006-03-13 21:01:55
Message-ID: 20060313210155.GA2787@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Mon, Mar 13, 2006 at 08:37:16 -0500,
John Christopher <jcxxr(at)yahoo(dot)com> wrote:
> Hello,
> To follow up on that, how to make sure the timestamp is always stored and
> displayed at, for instance, time zone 'zulu'
> Something like
> create table ...
> {
> datetime timestamptz default 'now() at time zone \'zulu\''
> }
> does not work; PostgreSQL complains about the syntax. Any idea.

You need to do that in the queries that are referencing the timestamps.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Guerin 2006-03-14 14:44:49 log rotation
Previous Message Michael Swierczek 2006-03-13 20:40:41 Re: Exception in thread "main" java.lang.OutOfMemoryError