one-off error in to_char formatting - Mailing list pgsql-hackers

From Erik Rijkers
Subject one-off error in to_char formatting
Date
Msg-id fdc101b06b1e7a981c0cd9c1116a6c37.squirrel@webmail.xs4all.nl
Whole thread Raw
Responses Re: one-off error in to_char formatting
List pgsql-hackers
ISTM this is a bug, no?

(9.0devel, cvs 2010.03.04 01:30)

replicas=# select length( to_char(1, '0') );length
--------     2
(1 row)

There seems to be an erroneously prefixed space:

replicas=# select '>' || to_char(1, repeat('0',8)) || '<'; ?column?
-------------> 00000001<
(1 row)


replicas=# select version();                                            version
--------------------------------------------------------------------------------------------------PostgreSQL
9.0devel-standbyon x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.4.3, 64-bit
 
(1 row)




Erik Rijkers



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Repetition of warning message while REVOKE
Next
From: Robert Haas
Date:
Subject: Re: Streaming replication and privilege