Re: Weird type selection choice

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Weird type selection choice
Дата
Msg-id 200711071121.27975.peter_e@gmx.net
обсуждение исходный текст
Ответ на Weird type selection choice  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Weird type selection choice  (Heikki Linnakangas <heikki@enterprisedb.com>)
Список pgsql-hackers
I wrote:
> I noticed this problem in 8.2 and 8.3:
>
> pei=# select mod( trunc( 1 ), 2 );
> ERROR:  42883: function mod(double precision, integer) does not exist
> LINE 1: select mod( trunc( 1 ), 2 );
>                ^

I suppose there will be little interest in including the obvious solution, 
namely

CREATE FUNCTION pg_catalog.trunc(int) RETURNS int AS $$ SELECT $1; $$ LANGUAGE 
SQL STRICT IMMUTABLE;

into PostgreSQL.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: EquivalenceClasses vs volatile functions
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Visibility map thoughts