From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Reason why set-value functions not allowed in GREATEST(), etc? |
Date: | 2010-02-22 18:16:57 |
Message-ID: | 162867791002221016o7600a609t3b57464d6baf1274@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2010/2/22 Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com>:
> I just wonder why generate_series() is not allowed in GREATEST syntax.
> Looking through execQual.c, almost all syntactic evaluations like
> COALESCE, ARRAY[], ROW() doesn't allow set-value functions. Could
> someone tell the underlying reason?
>
> Also, using variadic functions introduced since 8.4, I hope we can
> remove the special syntax cases for them by replacing them with normal
> variadic functions. Is it sane idea?
we cannot do it :(
we cannot ensure similar coercion for these functions with variadic
functions. Variadic functions use a generic coercion.
Regards
Pavel Stehule
>
> Regards,
>
> --
> Hitoshi Harada
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2010-02-22 18:18:03 | Re: scheduler in core |
Previous Message | Bruce Momjian | 2010-02-22 18:14:51 | Re: What does this configure warning mean? |