Re: Problems with Blank space - Mailing list pgsql-general

From Joe Conway
Subject Re: Problems with Blank space
Date
Msg-id 03a601c11f79$97e362d0$48d210ac@jecw2k1
Whole thread Raw
In response to Problems with Blank space  ("Eric, Audet" <eaudet@scc.ca>)
List 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


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Very Precision Time for Database Server
Next
From: Martín Marqués
Date:
Subject: Re: Admin tool