The getCurrentLocus() function

Detects the locus of execution for a UDF.

Description

The function has the following syntax:
extern "C" int getCurrentLocus();

Returns

A value that indicates whether the UDF is running in Postgres, DBOS, or on a SPU. The valid values are UDX_LOCUS_POSTGRES (0), UDX_LOCUS_DBOS (1), or UDX_LOCUS_SPU (2).