Re: CURRENT_TIMESTAMP vs actual time

From: Alban Hertroys <alban(at)magproductions(dot)nl>
To: Thomas Hallgren <thhal(at)mailblocks(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: CURRENT_TIMESTAMP vs actual time
Date: 2005-04-21 15:59:52
Message-ID: 4267CDF8.7060305@magproductions.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thomas Hallgren wrote:
> Why use timeofday() at all? Why not now(). It will return a timestamptz
> without casts.

For the same reason that the OP couldn't use CURRENT_TIMESTAMP. It
returns the timestamp of the start of the transaction.

--
Alban Hertroys
MAG Productions

T: +31(0)53 4346874
F: +31(0)53 4346876
E: alban(at)magproductions(dot)nl
W: http://www.magproductions.nl

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2005-04-21 16:01:09 Re: CURRENT_TIMESTAMP vs actual time
Previous Message Scott Marlowe 2005-04-21 15:59:11 Re: CURRENT_TIMESTAMP vs actual time