Re: Auto selection of internal representation for integer NUMERIC

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Auto selection of internal representation for integer NUMERIC
Дата
Msg-id 3394.1151940916@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Auto selection of internal representation for integer NUMERIC  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Список pgsql-hackers
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> In particular, this is useful for oracle users. Oracle recommends to use
> NUMBER(n, p) for all the case where numerics are required. So they try to
> use NUMERIC on PostgreSQL instead of NUMBER. But NUMERIC is not the best
> alternative to a short integer NUMBER.

I think the correct answer to that is user education.  Anything along
the lines you are suggesting would be convoluted and would probably
introduce unexpected behaviors (eg, overflow of intermediate results
that wouldn't have overflowed if the data was really NUMERIC).
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: CVS mirror, was Re: [PATCHES] ADD/DROPS INHERIT (actually INHERIT
Следующее
От: "Dragan Zubac"
Дата:
Сообщение: Transaction and table partitioning