Enable parallel UDRs

By default, a UDR does not execute in parallel. To enable parallel execution of UDRs, you must take the following actions:
  • Specify the PARALLELIZABLE modifier in the CREATE FUNCTION or ALTER FUNCTION statement.
  • Ensure that the UDR does not call non-PDQ threadsafe functions.
  • Turn on PDQ.
  • Use the UDR in a PDQ.