Re: numeric definition advice - Mailing list pgsql-novice

From Tom Lane
Subject Re: numeric definition advice
Date
Msg-id 11895.1204897050@sss.pgh.pa.us
Whole thread Raw
In response to numeric definition advice  (Raimon Fernandez <coder@montx.com>)
Responses Re: numeric definition advice  (Raimon Fernandez <coder@montx.com>)
List pgsql-novice
Raimon Fernandez <coder@montx.com> writes:
> Is valid to have a numeric with no precision and a scale of 2 ?

No.  You can do something like NUMERIC(1000,2) though.  It's pretty
much like VARCHAR --- the number you give is an upper limit, it's
not causing any wasted space to be allocated.

            regards, tom lane

pgsql-novice by date:

Previous
From: Raimon Fernandez
Date:
Subject: numeric definition advice
Next
From: Mary Anderson
Date:
Subject: pg_prepare question