Re: parameter info?

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: parameter info?
Дата
Msg-id 510BC45D.8070306@dunslane.net
обсуждение исходный текст
Ответ на Re: parameter info?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 01/31/2013 11:17 PM, Tom Lane wrote:
> 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.
>
>             


Thanks. That's exactly what I was looking for.

cheers

andrew



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

Предыдущее
От: Pavan Deolasee
Дата:
Сообщение: Turning auto-analyze off (was Re: [GENERAL] Unusually high IO for autovacuum worker)
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: proposal: enable new error fields in plpgsql (9.4)