Re: trimming a column - Mailing list pgsql-general

From Michael P. Soulier
Subject Re: trimming a column
Date
Msg-id 20120504031716.GU5230@mitel.com
Whole thread Raw
In response to Re: trimming a column  ("Michael P. Soulier" <michael_soulier@mitel.com>)
Responses Re: trimming a column
List pgsql-general
On 03/05/12 Michael P. Soulier said:

> still, in my app I see a lot of trailing whitespace after reading from the
> db...

[root@vmbg-msoulier3 eventviewer]# PYTHONPATH=.. python manage.py shell
Python 2.6.6 (r266:84292, Dec  7 2011, 20:38:36)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from main.models import *
>>> dir()
['ApplicationEvent', '__builtins__', 'datetime', 'models']
>>> events = ApplicationEvent.objects.all()
>>> for event in events:
...    print "'%s'" % event.id
...
'vmbg-msoulier3.nssg.mitel.com_1-1335549662-26268
'
'vmbg-msoulier3.nssg.mitel.com_1-1335549687-0
'
'tug-manage-ssl-1335549693-0
'
'vmbg-msoulier3.nssg.mitel.com_1-1335553128-344
'
'vmbg-msoulier3.nssg.mitel.com_1-1335553152-0
'
'tug-manage-ssl-1335553155-0
'
'vmbg-msoulier3.nssg.mitel.com_1-1336056097-0
'
'vmbg-msoulier3.nssg.mitel.com_1-1336058939-285
'
'vmbg-msoulier3.nssg.mitel.com_1-1336058940-0
'

lots and lots of whitespace. I think it's in the db.

Mike

Attachment

pgsql-general by date:

Previous
From: "Michael P. Soulier"
Date:
Subject: Re: trimming a column
Next
From: EllyR
Date:
Subject: Re: Move the postgreSQL database from Drive C to Map Network Drive (Called Z)