Loss of avg() functionality

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Loss of avg() functionality
Дата
Msg-id 200105161520.f4GFK5C51840@hub.org
обсуждение исходный текст
Список pgsql-bugs
Jon Pastore (jpastore@ffs-inc.net) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
Loss of avg() functionality

Long Description
In v7.0.3 we use avg() with a type money column and it works just fine.  In the new 7.1 (which btw way to verify we did
a\set from psql and it says 7.0.3 and I know I put in 7.1) it returns an error: 

unable to select an aggregate function avg(money)

we don't rely on this too heavily but it was nice to have we'll just have to write a function that will strip out the $
andavg the numbers. 

Sample Code
select avg(sf_amt) from servicefee;

No file was uploaded with this report

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

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Foreign key constraints on inherited columns, 2 errors.
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: PostgreSQL 7.1+ screw up Chinese Encoding after JDBC