diff options
Diffstat (limited to 'contrib/tsearch2/common.h')
-rw-r--r-- | contrib/tsearch2/common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/tsearch2/common.h b/contrib/tsearch2/common.h index 481f00405bb..6720598f817 100644 --- a/contrib/tsearch2/common.h +++ b/contrib/tsearch2/common.h @@ -21,4 +21,13 @@ int text_cmp(text *a, text *b); void ts_error(int state, const char *format,...); +extern Oid TSNSP_FunctionOid; /* oid of called function, needed only for determ namespace, no more */ +char* get_namespace(Oid funcoid); +Oid get_oidnamespace(Oid funcoid); + +#define SET_FUNCOID() do { \ + if ( fcinfo->flinfo && fcinfo->flinfo->fn_oid != InvalidOid ) \ + TSNSP_FunctionOid = fcinfo->flinfo->fn_oid; \ +} while(0) + #endif |