dbTalk Databases Forums  

[BUGS] BUG #1341: problem when showing resulted in the screen

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1341: problem when showing resulted in the screen in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1341: problem when showing resulted in the screen - 12-06-2004 , 07:31 AM







The following bug has been logged online:

Bug reference: 1341
Logged by: Pablo Borges

Email address: pablodev (AT) hotmail (DOT) com

PostgreSQL version: 7.4.6

Operating system: Linux Slackware

Description: problem when showing resulted in the screen

Details:

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)


\d teleoperador
Table "public.teleoperador"
Column | Type | Modifiers
--------+-------------------+----------------------------------------------
----------------
id | integer | not null default
nextval('public.teleoperador_id_seq'::text)
login | character varying |
ip | character varying | not null
tipo | character(1) | not null
Indexes:
"teleoperador_pkey" primary key, btree (id)
"teleoperador_login_key" unique, btree (login)

is one bug?


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1341: problem when showing resulted in the screen - 12-06-2004 , 09:53 AM






"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.