Bill Triplett <btt@nethouse.com> writes:
> The prob. is I can't seem to find a straightforward way to get from
> the array of floats to the postgres select form.
Take a look at the "FLOAT AGGREGATE OPERATORS" in
src/backend/utils/adt/float.c. These show relatively simple code for
assembling and disassembling fixed-size float arrays.
regards, tom lane