Re: [HACKERS] funny psql output

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] funny psql output
Date: 1999-10-19 05:05:00
Message-ID: 8357.940309500@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 1999-10-19 05:28:55 Re: [HACKERS] is it possible to use LIMIT and INTERSECT ?
Previous Message Tom Lane 1999-10-19 04:42:08 Re: [HACKERS] is it possible to use LIMIT and INTERSECT ?