Grant privileges
By default, the database server grants Execution privilege
to the generic user public when you register a UDR. However,
if the NODEFAC environment variable overrides
default privileges in a database, you must explicitly grant Execution
privilege to SQL users of that database. The following statement grants
Execution privilege to all potential end users:
GRANT EXECUTE ON FUNCTION strategy_function TO PUBLIC