Re: Problems with Blank space

From: "Joe Conway" <joseph(dot)conway(at)home(dot)com>
To: "Eric, Audet" <eaudet(at)scc(dot)ca>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Problems with Blank space
Date: 2001-08-07 19:46:03
Message-ID: 03a601c11f79$97e362d0$48d210ac@jecw2k1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I am not sure if this is a database issue or a DBI::Pg issue.
>
> When I do a select * from tablea .... all fields specified as fix length
> text field ... return the data with blank space.
>
> Example:
> "Eric" returns "Eric****************" where * are blank spaces.
>
> Is this normal?

Yes, use varchar() or text instead of char() if you don't want the spaces.
See:

http://www.postgresql.org/idocs/index.php?datatype-character.html

HTH,

-- Joe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message wsheldah 2001-08-07 19:52:07 Re: Problems with Blank space
Previous Message Mitch Vincent 2001-08-07 19:26:31 Re: Problems with Blank space