Re: Suggestions please: names for function

From: mlw <markw(at)mohawksoft(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Suggestions please: names for function
Date: 2002-04-03 16:46:37
Message-ID: 3CAB31ED.651AC6E8@mohawksoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Peter Eisentraut wrote:
>
> Tom Lane writes:
>
> > mlw <markw(at)mohawksoft(dot)com> writes:
> > > (1) const or constant
> > > (2) cacheable
> > > (3) volatile
> >
> > I was wondering about "const" for case 1, also. I think there is some
> > precedent for using "const" with this meaning in other programming
> > languages.
>
> I think the meaning of "const" tends to be "cannot change the result" --
> which may actually make sense in SQL in a future life if you can pass
> around table descriptors or cursor references.

A function, such as sin(x) could be considered constant for the result based on
value 'x'

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2002-04-03 16:54:20 Re: Suggestions please: names for function cachability
Previous Message Thomas Lockhart 2002-04-03 16:45:03 Re: Suggestions please: names for function cachability

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2002-04-03 16:54:20 Re: Suggestions please: names for function cachability
Previous Message Thomas Lockhart 2002-04-03 16:45:03 Re: Suggestions please: names for function cachability