Re: [HACKERS] Suggestions please: names for function cachabilityattributes

2002-04-13 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Basically I'd like to write > CREATE FUNCTION name (args, ...) RETURNS type > AS '...' > LANGUAGE foo > STATIC > IMPLICIT CAST > (where everything after RETURNS can be in random order). No strong objection here; but you'

Re: [HACKERS] Suggestions please: names for function cachabilityattributes

2002-04-12 Thread Peter Eisentraut
Tom Lane writes: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > Tom Lane writes: > >> case 1: "immutable" > >> case 2: "mutable", or perhaps "stable" > >> case 3: "volatile" > > > Since they've changed anyway, how about dropping the silly "is" in front > > of the names? > > "volatile" would c

Re: [HACKERS] Suggestions please: names for function cachabilityattributes

2002-04-12 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane writes: >> case 1: "immutable" >> case 2: "mutable", or perhaps "stable" >> case 3: "volatile" > Since they've changed anyway, how about dropping the silly "is" in front > of the names? "volatile" would conflict with a C keyword. Possibly

Re: [HACKERS] Suggestions please: names for function cachabilityattributes

2002-04-12 Thread Peter Eisentraut
Tom Lane writes: > case 1: "immutable" > case 2: "mutable", or perhaps "stable" > case 3: "volatile" Since they've changed anyway, how about dropping the silly "is" in front of the names? -- Peter Eisentraut [EMAIL PROTECTED] ---(end of broadcast)---

Re: [HACKERS] Suggestions please: names for function cachabilityattributes

2002-04-03 Thread Peter Eisentraut
Tom Lane writes: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > It could also be considered deterministic, strict, cacheable, > > mathematically sensible, real, pleasant, or good. ;-) > > > Out of those, I believe "const" is the worst term, because saying "sin(x) > > is a constant function" s

Re: [HACKERS] Suggestions please: names for function cachabilityattributes

2002-04-03 Thread Tom Lane
It occurs to me that we also need a better term for the overall concept. "cacheability" has misled at least two people (that I can recall) into thinking that we maintain some kind of function result cache --- which is not true, and if it were true we'd need the term "cacheable" for control paramet

Re: [HACKERS] Suggestions please: names for function cachabilityattributes

2002-04-03 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > It could also be considered deterministic, strict, cacheable, > mathematically sensible, real, pleasant, or good. ;-) > Out of those, I believe "const" is the worst term, because saying "sin(x) > is a constant function" sounds pretty wrong. Yeah, th

Re: [HACKERS] Suggestions please: names for function cachabilityattributes

2002-04-03 Thread Peter Eisentraut
mlw writes: > A function, such as sin(x) could be considered constant for the result based on > value 'x' It could also be considered deterministic, strict, cacheable, mathematically sensible, real, pleasant, or good. ;-) Out of those, I believe "const" is the worst term, because saying "sin(x)