Re: problem with timeofday() function in cvs PostgreSQL - Mailing list pgsql-general

From Pavel Stehule
Subject Re: problem with timeofday() function in cvs PostgreSQL
Date
Msg-id Pine.LNX.4.44.0308081257120.20750-100000@kix.fsv.cvut.cz
Whole thread Raw
In response to Re: problem with timeofday() function in cvs PostgreSQL  (Dennis Björklund <db@zigo.dhs.org>)
Responses Re: problem with timeofday() function in cvs PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Fri, 8 Aug 2003, [ISO-8859-1] Dennis Björklund wrote:

> On Fri, 8 Aug 2003, Pavel Stehule wrote:
>
> > In this version I can't convert returned value to time. timeofday() return
> > text. I need convert to timestamp before. It is normal behavior? I
> > expected timestamp as returned type.
>
> It is documented to return a string for historical reasons:
>
> http://www.postgresql.org/docs/7.3/static/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

This is good reason. Thank you.

>
> You probably want now() instead of that function.
>

I can't use now() or others because I need actual time in transaction.

Thank you
Pavel


pgsql-general by date:

Previous
From: Dennis Björklund
Date:
Subject: Re: problem with timeofday() function in cvs PostgreSQL
Next
From: "Eric Anderson Vianet SAO"
Date:
Subject: toast values