I am able to use most of the functions like cube_distance,cube_contains etc. I am facing a problem when passing an argument to these functions which are table columns.
For example :
select cube_distance('(0)','(1)');
cube_distance --------------- 1 (1 row)
works fine.
But
select cube_distance('(0)',(select a from temp));
ERROR: function cube_distance("unknown", integer) does not exist HINT: No function matches the given name and argument types. You may need to add explicit type casts.
I am not sure what to typecast to. Could you please help me correct this error.
Contribs are part of PostgreSQL sources and maintained as such, but not included into the 'core' project. They are certainly distributed along with PostgreSQL in your packaging system of choice.