"Benjamin RICHARD" <benjamin@intradot.com> writes:
> To do this i create the following function which return me a parse error
> near '[' (in the Raise notice line)
> What mistake did i do ?
IIRC, the RAISE NOTICE command is incapable of evaluating expressions;
it can only handle trivial variable references. Do something useful
with the array element instead of RAISE ...
regards, tom lane