By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,903 Members | 1,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,903 IT Pros & Developers. It's quick & easy.

Current time inside Transactions

P: n/a
Hi,

Is there is a way to get the real curren_time inside a transaction (not
the time when the transaction stated)

Daniel

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Wednesday 01 October 2003 12:51, Daniel Schuchardt wrote:
Hi,

Is there is a way to get the real curren_time inside a transaction (not
the time when the transaction stated)


SELECT timeofday();

Note that this returns a text-type (for historical reasons apparently)

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 12 '05 #2

P: n/a
On Wed, 1 Oct 2003, Daniel Schuchardt wrote:
Hi,

Is there is a way to get the real curren_time inside a transaction (not
the time when the transaction stated)


begin;
select timeofday();
select timeofday();
commit;
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.