"Thomas Chille" <thomas(at)chille(dot)de> writes:
> Now i tried to set the init-state to wnumeric(0, 0), but it wont work. The INITCOND-paramter only
> accept string-literals like '0, 0', '(0.0,0.0)', but if i use the agrregate i get always this:
> 'ERROR: Cannot accept a constant of type RECORD'.
This isn't going to work in existing releases, but FWIW it does work in 8.0.
Do you really need the weight and the value to be of different
datatypes? You could make it work in current releases by using
a two-element array as the state type.
BTW, as far as I can see all those functions would be better defined
as IMMUTABLE than VOLATILE.
regards, tom lane