"Ben Trewern" <bendottrewern(at)mowlem(dot)com> writes: > It seems that to_char(1, '000') gives a string " 001" with a space in front. > Is this a bug?
No.
Possibly you want 'FM000'.
regards, tom lane
In response to
to_char bug? at 2005-02-25 16:19:37 from Ben Trewern