Re: Problem with a Pettern Matching Check - Mailing list pgsql-sql

From Sebastian Siewior
Subject Re: Problem with a Pettern Matching Check
Date
Msg-id 20050816005518.754f7fa9@mikejones.ghb.fh-furtwangen.de
Whole thread Raw
In response to Re: Problem with a Pettern Matching Check  ("Dmitri Bichko" <dbichko@aveopharma.com>)
List pgsql-sql
On Mon, 15 Aug 2005 18:37:52 -0400
"Dmitri Bichko" <dbichko@aveopharma.com> wrote:

> I'm guessing it's because char gets padded with spaces to the
> specified length.

argh. Thank you.

> Any reason you are using char(3) instead of varchar(3)?  

The numbers will have 2 or 3 digits so I tried to save some space :)

> And why are you storing numbers as a string, anyway?  If you defined
> the column as a numeric type, postgres will tell you if you try to
> insert something non-numeric.

Correct. I will not let the values to be used together with
sum/avg/+/...

> 
> Dmitri
> 

-- 
Regards
Sebastian Siewior


pgsql-sql by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Problem with a Pettern Matching Check
Next
From: "Dmitri Bichko"
Date:
Subject: Re: Problem with a Pettern Matching Check