Re: trimming a column

From: "Michael P(dot) Soulier" <michael_soulier(at)mitel(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: trimming a column
Date: 2012-05-04 03:17:16
Message-ID: 20120504031716.GU5230@mitel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael P. Soulier 2012-05-04 03:23:05 Re: trimming a column
Previous Message Michael P. Soulier 2012-05-04 03:13:42 Re: trimming a column