Need timestamp function that will change within a transaction - Mailing list pgsql-general

From D. Dante Lorenso
Subject Need timestamp function that will change within a transaction
Date
Msg-id 482B43FA.1020200@lorenso.com
Whole thread Raw
Responses Re: Need timestamp function that will change within a transaction  (Steve Atkins <steve@blighty.com>)
Re: Need timestamp function that will change within a transaction  (Dimitri Fontaine <dim@hi-media.com>)
List pgsql-general
I'd like to find a timestamp function that WILL change within a transaction.

This function will return to me a 15 digit BIGINT number in base10:

   SELECT FLOOR(EXTRACT(EPOCH FROM NOW()) * 100000)::bigint;

The problem is that NOW() does not change within a transaction and so I
keep getting the same value.  Is there a function that will return a
timestamp that is NOT consistent within a transaction?

-- Dante

pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: rounding problems
Next
From: Steve Atkins
Date:
Subject: Re: Need timestamp function that will change within a transaction