Re: BUG #1341: problem when showing resulted in the screen

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Pablo Borges" <pablodev(at)hotmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1341: problem when showing resulted in the screen
Date: 2004-12-06 15:50:38
Message-ID: 1806.1102348238@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> select * from teleoperador;
> id | login | ip | tipo
> ----+----------+------------------------+------
> 0 | pablo | 10.0.0.106 | C
> 1 | builder | 10.0.0.107
> 10.0.0.107 | C
> 2 | reinaldo | 10.0.0.105 | C
> (3 rows)

Looks to me like you managed to store a carriage return or newline
character (\r or \n) in the ip column.

Is there a reason for using varchar rather than the inet datatype
for that column? inet would give you some error checking, which
you evidently need.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Ed L. 2004-12-06 16:45:39 Re: serial drop error
Previous Message PostgreSQL Bugs List 2004-12-06 13:27:59 BUG #1340: problem when showing resulted in the screen