Re: numeric definition advice

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Raimon Fernandez <coder(at)montx(dot)com>
Cc: PostgreSQL List - Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: numeric definition advice
Date: 2008-03-07 13:37:30
Message-ID: 11895.1204897050@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Raimon Fernandez <coder(at)montx(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Mary Anderson 2008-03-07 18:21:08 pg_prepare question
Previous Message Raimon Fernandez 2008-03-07 10:40:55 numeric definition advice