Re: create view with numeric data - Mailing list pgsql-sql

From Tom Lane
Subject Re: create view with numeric data
Date
Msg-id 23915.1049133170@sss.pgh.pa.us
Whole thread Raw
In response to create view with numeric data  (cio198@plasa.com (cio198))
List pgsql-sql
cio198@plasa.com (cio198) writes:
> The problem is the numeric data in the view isn't limited to
> numeric(9,2) instead it become numeric(65535, 65531).

It should look like plain, unrestricted "numeric".  Whatever is showing
you those bogus precision/scale fields is wrong.  What client software
are you using anyway?

> Is there any way i can restrict it to numeric (9,2)

If you really want (9,2) and not just plain numeric, you can cast the
results of the sum operations to numeric(9,2).
        regards, tom lane



pgsql-sql by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Off topic : world database
Next
From: Tomasz Myrta
Date:
Subject: Re: create view with numeric data