Re: parameter info?

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: parameter info?
Дата
Msg-id CAFj8pRBsTLbOivQ-hWiZrHSvwN84D62afCQ+dLWptAFy+g8wNw@mail.gmail.com
обсуждение исходный текст
Ответ на parameter info?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
hello

2013/2/1 Andrew Dunstan <andrew@dunslane.net>:
>
> What's the best way for me to find out if a given parameter of a function is
> a constant? The context is that it's expensive to process, and in most cases
> will in fact be a constant, so if it is in fact a constant I'd like to
> process it once and stash the results.
>

you can look into parser tree

see src of get_fn_expr_argtype(fcinfo->flinfo, 0);

Regards

Pavel

> cheers
>
> andrew
>
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: recursive view syntax
Следующее
От: Tom Lane
Дата:
Сообщение: Re: parameter info?