Re: round - timestamp bug

Karel Zak <zakkr@zf.jcu.cz>

From: Karel Zak <zakkr@zf.jcu.cz>
To: Gonzalo Arana <garana@sinectis.com.ar>
Cc: pgsql-bugs@postgresql.org
Date: 2001-01-26T02:31:55Z
Lists: pgsql-bugs
> radius=# create table x (x timestamp);
> CREATE
> radius=# insert into x (x) values ('Tue 23 Jan 21:38:59.997 2001');
> INSERT 619178 1
> radius=# select * from x;
>                 x                
> ---------------------------------
>  Tue 23 Jan 21:38:60.00 2001 ART
> (1 row)
> 
> radius=# select to_char(x,'Dy DD Mon HH24:MI:SS YYYY') from x;
>          to_char          
> --------------------------
>  Tue 23 Jan 21:38:59 2001
> (1 row)


 The to_char() is directly based on 'tm' struct and in current version
not use 'fsec' from timestamp2tm(). Hmm... I add it to my TODO.

 I not sure if I fix it for 7.1, may be as late as in 7.1.1 :-(

 It is not fatal bug it is almost feature that SS return directly sec :-)

				Karel