Re: [HACKERS] type design guidance needed

2000-09-23 Thread Tom Lane
>> Bruce, is that the case? Do you really have it documented? If so, >> where? > src/backend/utils/cache/syscache.c BTW, it occurs to me that the real reason adding a syscache is invasive is that the syscache routines accept parameters that are integer indexes into syscache.c's cacheinfo[] arr

Re: [HACKERS] type design guidance needed

2000-09-23 Thread Bernard Frankpitt
Hi Brook, It seems to me that the answer depends on how much effort you want to put in to it. Brook Milligan wrote: > > I am working on designing some new datatypes and could use some > guidance. > It seems that there are several alternative approaches, and I am > seeking some guidance

Re: [HACKERS] type design guidance needed

2000-09-23 Thread Brook Milligan
It'd be useful to know more about your measurement scales. Evgeni remarks that for his applications, units can be broken down into simple linear combinations of fundamental units --- but if you're doing something like converting between different device-dependent color spaces, I ca

Re: [HACKERS] type design guidance needed

2000-09-22 Thread Tom Lane
Brook Milligan <[EMAIL PROTECTED]> writes: > Along with each data item, I must keep additional information about > the scale of measurement. Further, the relevant scales of measurement > fall into a few major families of related scales, so at least a > different type will be required for each of

Re: [HACKERS] type design guidance needed

2000-09-22 Thread Evgeni E. Selkov
Brook, I have been contemplating such data type for years. I believe I have assembled the most important parts, but I did not have time to complete the whole thing. The idea is that hte units of measurement can be treated as arithmetic expressions. One can assign each of the few existing base un

[HACKERS] type design guidance needed

2000-09-22 Thread Brook Milligan
I am working on designing some new datatypes and could use some guidance. Along with each data item, I must keep additional information about the scale of measurement. Further, the relevant scales of measurement fall into a few major families of related scales, so at least a different type will