Re: Weird type selection choice

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Weird type selection choice
Дата
Msg-id 473197A4.1040903@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Weird type selection choice  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Weird type selection choice  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut wrote:
> 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;

It does sound totally useless...

Why would you run a query like that in the first place? It seems like a 
useless query as it is. Is there a bigger story behind it?

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Visibility map thoughts
Следующее
От: Jörg Beyer
Дата:
Сообщение: Re: Bug: --with-libxml does not take a location