Re: [HACKERS] funny psql output - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] funny psql output
Date
Msg-id 8357.940309500@sss.pgh.pa.us
Whole thread Raw
In response to funny psql output  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] funny psql output  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.us> writes:
> test=> insert into kk1 values ('1/1/1990');
> INSERT 18588 1
> test=> select * from kk1;
>       born
> ----------
> 01-01-1990
> (1 row)

> Look how 'born' is right-shifted in the column.  Any idea why?

I think libpq's print routine is deciding that the column is numeric.
(all digits and minus signs ... and IIRC it's not very picky about
where the minus signs are...)

Perhaps Peter will fix this during his massive rewrite.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] is it possible to use LIMIT and INTERSECT ?
Next
From: Oleg Bartunov
Date:
Subject: Re: [HACKERS] is it possible to use LIMIT and INTERSECT ?