Re: Re: timestamp goober

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: Gregory Wood <gregw(at)com-stock(dot)com>
Cc: Culley Harrelson <culleyharrelson(at)yahoo(dot)com>, PostgreSQL-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Re: timestamp goober
Date: 2001-02-08 17:50:02
Message-ID: Pine.BSO.4.10.10102081240390.26806-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yes, and that's a feature :)

If you want a wall clock time, use timenow()

-alex

On Thu, 8 Feb 2001, Gregory Wood wrote:

> > columns with default timestamp('now') see to be
> > defaulting to the time I started posgresql!
>
> I noticed that timestamps (in my case CURRENT_TIMESTAMP) are taken from the
> beginning of a transaction. You didn't mention how you were accessing the
> database, but if you were updating everything inside the same transaction,
> everything would be timestamped with the time that transaction began.
>
> Greg
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Wood 2001-02-08 18:04:29 Re: Re: timestamp goober
Previous Message Brice Ruth 2001-02-08 17:35:24 Re: Re: Query never returns ...