Re: problem with timeofday() function in cvs PostgreSQL

From: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>
To: Dennis Björklund <db(at)zigo(dot)dhs(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: problem with timeofday() function in cvs PostgreSQL
Date: 2003-08-08 11:00:58
Message-ID: Pine.LNX.4.44.0308081257120.20750-100000@kix.fsv.cvut.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Achilleus Mantzios 2003-08-08 11:53:51 Conditional row grained replication with DBMirror
Previous Message Dennis Björklund 2003-08-08 10:37:25 Re: problem with timeofday() function in cvs PostgreSQL