pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: A. Kretschmer <andreas.kretschmer@schollglas.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: now() gives same time within the session
Date: Sun, 18 Jul 2010 11:54:05 +0300
Message-ID: <4C42C12D.4090403@enterprisedb.com> (raw)
In-Reply-To: <20100712111500.GA14489@a-kretschmer.de>
References: <418EC9BD4D7125488CCAC5C7C559A24803A9D0@MS10.lsc.net>
	<20100712111500.GA14489@a-kretschmer.de>

On 12/07/10 14:15, A. Kretschmer wrote:
> Use timeofday() instead, now() returns the transaction starting time.

timeofday() is a legacy function kept only for backwards-compatibility. 
It returns a string, which is quite awkward. Use clock_timestamp() instead.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (8+ messages)

Message-ID: <4C42C12D.4090403@enterprisedb.com>
Permalink:  ../4C42C12D.4090403@enterprisedb.com/
Also on:    postgresql.org/message-id/4C42C12D.4090403@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: heikki.linnakangas@enterprisedb.com, andreas.kretschmer@schollglas.com
  Subject: Re: now() gives same time within the session
  In-Reply-To: <4C42C12D.4090403@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox