Re: Display of TIMESTAMP in 7.2 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Display of TIMESTAMP in 7.2
Date
Msg-id 25093.1012924905@sss.pgh.pa.us
Whole thread Raw
In response to Display of TIMESTAMP in 7.2  (Alessio Bragadini <alessio@albourne.com>)
Responses Re: Display of TIMESTAMP in 7.2  (Alessio Bragadini <alessio@albourne.com>)
List pgsql-hackers
Alessio Bragadini <alessio@albourne.com> writes:
> starting with 7.2, now() returns a time with milliseconds. If extracted
> from the db and displayed verbatim, it shows up as
> '2002-02-05 10:59:36.717176+02'.

Use to_char if you want to control the formatting precisely.  Or
replace now() with CURRENT_TIMESTAMP(0) (which not only does what
you want, but is standards-compliant).
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: PostgreSQL v7.2 Final Release
Next
From: Tom Lane
Date:
Subject: Re: Threaded PosgreSQL server