Re: parameter info?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: parameter info?
Дата
Msg-id 14561.1359692227@sss.pgh.pa.us
обсуждение исходный текст
Ответ на parameter info?  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: parameter info?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> 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.

I think we added get_fn_expr_arg_stable() for precisely that
purpose.
        regards, tom lane



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: parameter info?
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Suggestion: Issue warning when calling SET TRANSACTION outside transaction block