Skip site navigation (1) Skip section navigation (2)

Re: parameter info?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: parameter info?
Date: 2013-02-01 04:17:07
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers
Andrew Dunstan <andrew(at)dunslane(dot)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

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Amit KapilaDate: 2013-02-01 05:04:33
Subject: Re: Suggestion: Issue warning when calling SET TRANSACTION outside transaction block
Previous:From: Pavel StehuleDate: 2013-02-01 04:02:35
Subject: Re: parameter info?

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group